tmf: Fix usage of readNode() method in HistoryTree
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 21 Jan 2014 19:58:02 +0000 (14:58 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 21 Jan 2014 23:20:23 +0000 (18:20 -0500)
Small fix to 726106b, the optimization to not look into the branch
in memory (when looking for a HTNode) should only be done when we
know the node is not in memory. The general case should use the
method from HistoryTree itself.

Change-Id: I3ce114f7f84f14f2dc892c400ab6aa768bab18fc
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/20902
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HistoryTree.java

index 7f00e248775a344f99e3b8da8e5ebef4113cccaa..de3bed3f62ad5f57139ee2308910082842110ba4 100644 (file)
@@ -612,7 +612,7 @@ public class HistoryTree {
         if (currentNode.isDone()) {
             return treeIO.readNode(potentialNextSeqNb);
         }
-        return treeIO.readNode(potentialNextSeqNb);
+        return readNode(potentialNextSeqNb);
     }
 
     /**
This page took 0.027942 seconds and 5 git commands to generate.