directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokt...@apache.org
Subject svn commit: r1376324 - /directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/IndexCursorWrapper.java
Date Thu, 23 Aug 2012 00:15:15 GMT
Author: gokturk
Date: Thu Aug 23 00:15:15 2012
New Revision: 1376324

URL: http://svn.apache.org/viewvc?rev=1376324&view=rev
Log:
Fixed the bug of IndexCursorWrapper over search cursors.(Couldn't find the existing entries
on presence scan) Added the necessary setAvailable() call to next() and previous() calls.

Modified:
    directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/IndexCursorWrapper.java

Modified: directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/IndexCursorWrapper.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/IndexCursorWrapper.java?rev=1376324&r1=1376323&r2=1376324&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/IndexCursorWrapper.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/IndexCursorWrapper.java
Thu Aug 23 00:15:15 2012
@@ -454,7 +454,10 @@ public class IndexCursorWrapper extends 
         }
         while ( true );
 
-        return ( getIndex >= 0 );
+        boolean valueAvailable = ( getIndex >= 0 );
+        setAvailable( valueAvailable );
+
+        return valueAvailable;
     }
 
 
@@ -571,7 +574,10 @@ public class IndexCursorWrapper extends 
         }
         while ( true );
 
-        return ( getIndex >= 0 );
+        boolean valueAvailable = ( getIndex >= 0 );
+        setAvailable( valueAvailable );
+
+        return valueAvailable;
     }
 
 



Mime
View raw message