NoteDbUpdateManager: Clear temp inserter right after flushing
Change-Id: I1f9296981887d5e7757fcc909db1d48e35256c41
This commit is contained in:
@@ -170,7 +170,6 @@ public class NoteDbUpdateManager implements AutoCloseable {
|
||||
void flush() throws IOException {
|
||||
flushToFinalInserter();
|
||||
finalIns.flush();
|
||||
tempIns.clear();
|
||||
}
|
||||
|
||||
void flushToFinalInserter() throws IOException {
|
||||
@@ -178,6 +177,7 @@ public class NoteDbUpdateManager implements AutoCloseable {
|
||||
for (InsertedObject obj : tempIns.getInsertedObjects()) {
|
||||
finalIns.insert(obj.type(), obj.data().toByteArray());
|
||||
}
|
||||
tempIns.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user