diff --git a/kahadb/src/main/java/org/apache/kahadb/index/BTreeNode.java b/kahadb/src/main/java/org/apache/kahadb/index/BTreeNode.java index 8120d1361d..eb9fe2a314 100644 --- a/kahadb/src/main/java/org/apache/kahadb/index/BTreeNode.java +++ b/kahadb/src/main/java/org/apache/kahadb/index/BTreeNode.java @@ -332,9 +332,10 @@ public final class BTreeNode { keys = child.keys; children = child.children; values = child.values; + // free up the page.. + tx.free(child.getPage()); } - // free up the page.. - tx.free(child.getPage()); + } index.storeNode(tx, this, true); }