directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1605997 - /directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
Date Fri, 27 Jun 2014 09:27:10 GMT
Author: elecharny
Date: Fri Jun 27 09:27:09 2014
New Revision: 1605997

URL: http://svn.apache.org/r1605997
Log:
Don't check the firstfree page if it's -1.

Modified:
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java?rev=1605997&r1=1605996&r2=1605997&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
Fri Jun 27 09:27:09 2014
@@ -283,7 +283,10 @@ public class MavibotInspector
             // and its value must be a modulo of pageSize
             long firstFreePage = recordManagerHeader.getLong();
 
-            checkOffset( recordManager, firstFreePage );
+            if ( firstFreePage != RecordManager.NO_PAGE )
+            {
+                checkOffset( recordManager, firstFreePage );
+            }
 
             int nbPageBits = ( int ) ( nbPages / 32 );
 



Mime
View raw message