directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r659741 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
Date Sat, 24 May 2008 01:17:26 GMT
Author: akarasulu
Date: Fri May 23 18:17:25 2008
New Revision: 659741

URL: http://svn.apache.org/viewvc?rev=659741&view=rev
Log:
fixing bug with closiing of wrapped cursor on successful next operation

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java?rev=659741&r1=659740&r2=659741&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
Fri May 23 18:17:25 2008
@@ -101,8 +101,13 @@
         try
         {
             entry = cursor.get();
-            if ( available = cursor.next() == false )
+            if ( cursor.next() )
             {
+                available = true;
+            }
+            else
+            {
+                available = false;
                 cursor.close();
             }
         }



Mime
View raw message