Commit meta data changes to notedb when adding approvals on merge

When a change is merged, a SUBMIT approval is added to the change, but
this approval was not stored in notedb since the change update was not
committed.

This fixes several tests that were failing when notedb is enabled.

Change-Id: Ie58f600a69b815ff401ceab1d638c151178b3e7a
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2015-11-09 16:39:57 -08:00
parent ba69835964
commit 5d47cc036b

View File

@@ -1071,6 +1071,7 @@ public class MergeOp {
} finally {
db.rollback();
}
update.commit();
indexer.index(db, cd.change());
}