directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1541462 - in /directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed: Leaf.java Node.java
Date Wed, 13 Nov 2013 10:50:12 GMT
Author: elecharny
Date: Wed Nov 13 10:50:11 2013
New Revision: 1541462

URL: http://svn.apache.org/r1541462
Log:
o Some more fix for the browseFrom() method : we were not remembering the current position
o We also started from the first element of a node, which is not good for the browseFrome
method

Modified:
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Leaf.java
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Node.java

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Leaf.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Leaf.java?rev=1541462&r1=1541461&r2=1541462&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Leaf.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Leaf.java
Wed Nov 13 10:50:11 2013
@@ -665,7 +665,7 @@ import org.apache.directory.mavibot.btre
                 
                 stack[depth] = parentPos;
 
-                cursor = new TupleCursorImpl<K, V>( btree, transaction, stack, 0 );
+                cursor = new TupleCursorImpl<K, V>( btree, transaction, stack, depth
);
             }
             else if ( nbElems > 0 )
             {
@@ -674,7 +674,7 @@ import org.apache.directory.mavibot.btre
                 
                 stack[depth] = parentPos;
 
-                cursor = new TupleCursorImpl<K, V>( btree, transaction, stack, 0 );
+                cursor = new TupleCursorImpl<K, V>( btree, transaction, stack, depth
);
                 
                 try
                 {

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Node.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Node.java?rev=1541462&r1=1541461&r2=1541462&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Node.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/managed/Node.java
Wed Nov 13 10:50:11 2013
@@ -980,7 +980,7 @@ import org.apache.directory.mavibot.btre
         // We first stack the current page
         stack[depth++] = new ParentPos<K, V>( this, pos );
         
-        Page<K, V> page = children[0].getValue( btree );
+        Page<K, V> page = children[pos].getValue( btree );
 
         return page.browse( key, transaction, stack, depth );
     }



Mime
View raw message