Merge "Revert "NoteDbUpdateManager: Remove unused flush method""
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user