From 47ee52e5d30ca94e40b6df3918edaefdc5eb84a0 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Tue, 16 Oct 2012 12:54:09 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-4094 - revert inadvertent mod/regression to BTreeNode, multiple iterations of the test verify it is unnecessary and seems to be the root cause of some instability git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1398770 13f79535-47bb-0310-9956-ffa450edef68 --- kahadb/src/main/java/org/apache/kahadb/index/BTreeNode.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }