You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2014/05/04 11:44:50 UTC
svn commit: r1592331 -
/directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/MavibotInspector.java
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 );