Merge "Revert "NoteDbUpdateManager: Remove unused flush method""

This commit is contained in:
Dave Borowitz
2017-04-18 22:42:17 +00:00
committed by Gerrit Code Review

View File

@@ -455,6 +455,15 @@ public class NoteDbUpdateManager implements AutoCloseable {
return draftIds;
}
public void flush() throws IOException {
if (changeRepo != null) {
changeRepo.flush();
}
if (allUsersRepo != null) {
allUsersRepo.flush();
}
}
@Nullable
public BatchRefUpdate execute() throws OrmException, IOException {
return execute(false);