directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1592331 - /directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
Date Sun, 04 May 2014 09:44:50 GMT
Author: kayyagari
Date: Sun May  4 09:44:49 2014
New Revision: 1592331

URL: http://svn.apache.org/r1592331
Log:
o replaced exceptions with a combination of sysout and return statements
o javadoc typo

Modified:
    directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java

Modified: directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
URL: http://svn.apache.org/viewvc/directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java?rev=1592331&r1=1592330&r2=1592331&view=diff
==============================================================================
--- directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
(original)
+++ directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
Sun May  4 09:44:49 2014
@@ -247,15 +247,17 @@ public class MavibotInspector
             // Check that the previous BOB offset is not pointing to something
             if ( previousBtreeOfBtreesOffset != RecordManager.NO_PAGE )
             {
-                throw new InvalidBTreeException( "The previous Btree of Btrees offset is
not valid : "
+                System.out.println( "The previous Btree of Btrees offset is not valid : "
                     + previousBtreeOfBtreesOffset );
+                return;
             }
 
             // Check that the previous CPB offset is not pointing to something
             if ( previousCopiedPagesBtreeOffset != RecordManager.NO_PAGE )
             {
-                throw new InvalidBTreeException( "The previous Copied Pages Btree offset
is not valid : "
+                System.out.println( "The previous Copied Pages Btree offset is not valid
: "
                     + previousCopiedPagesBtreeOffset );
+                return;
             }
 
             // Check that the current BOB offset is valid
@@ -426,7 +428,7 @@ public class MavibotInspector
 
         // The size of the data containing the keys and values
         // Reads the bytes containing all the keys and values, if we have some
-        // We read  big blog of data into  ByteBuffer, then we will process
+        // We read  big blob of data into  ByteBuffer, then we will process
         // this ByteBuffer
         ByteBuffer byteBuffer = recordManager.readBytes( pageIos, position );
 



Mime
View raw message