directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r946589 - /directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java
Date Thu, 20 May 2010 10:29:23 GMT
Author: elecharny
Date: Thu May 20 10:29:22 2010
New Revision: 946589

URL: http://svn.apache.org/viewvc?rev=946589&view=rev
Log:
Fixed a NPE I introduced yesterday night.
Rule #1 : always run full build before committing
Rule #2 : don't commit at 4 am if you are too tired to wait 10 minutes for the build to end...


Modified:
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java?rev=946589&r1=946588&r2=946589&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java Thu May 20 10:29:22
2010
@@ -563,7 +563,7 @@ public class BTree<K, V> implements Exte
         bTreeHeight = in.readInt();
         rootId = in.readLong();
         pageSize = in.readInt();
-        nbEntries.set( in.readInt() );
+        nbEntries = new AtomicInteger( in.readInt() );
     }
 
 



Mime
View raw message