Skip to content

Commit

Permalink
Merge pull request #297 from aionnetwork/dev-alexandra
Browse files Browse the repository at this point in the history
bugfix: only inserts should be pushed to disk
  • Loading branch information
iamyulong authored Mar 27, 2018
2 parents 11de9ce + 2245c9c commit b96c0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modMcf/src/org/aion/mcf/trie/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ public synchronized void commit(boolean flushCache) {
// batchMemorySize += length(key, value);
}
}
for (ByteArrayWrapper removedNode : removedNodes) {
/* for (ByteArrayWrapper removedNode : removedNodes) {
batch.put(removedNode.getData(), null);
}
} */

this.dataSource.putBatch(batch);
this.isDirty = false;
Expand Down

0 comments on commit b96c0d9

Please sign in to comment.