directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1398839 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/EntryCursorAdaptor.java
Date Tue, 16 Oct 2012 15:16:37 GMT
Author: elecharny
Date: Tue Oct 16 15:16:36 2012
New Revision: 1398839

URL: http://svn.apache.org/viewvc?rev=1398839&view=rev
Log:
Fixed a potential OOM for big searches : we were keeping the entry into the IndexEntry element,
even if it was not valid.

Modified:
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/EntryCursorAdaptor.java

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/EntryCursorAdaptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/EntryCursorAdaptor.java?rev=1398839&r1=1398838&r2=1398839&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/EntryCursorAdaptor.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/EntryCursorAdaptor.java
Tue Oct 16 15:16:36 2012
@@ -162,6 +162,10 @@ public class EntryCursorAdaptor extends 
         {
             return indexEntry.getEntry();
         }
+        else
+        {
+            indexEntry.setEntry( null );
+        }
 
         return null;
     }



Mime
View raw message