You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2014/05/17 08:44:38 UTC
svn commit: r1595428 - in
/directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree:
InMemoryBTree.java MavibotInspector.java
Author: elecharny
Date: Sat May 17 06:44:37 2014
New Revision: 1595428
URL: http://svn.apache.org/r1595428
Log:
Removed some useless import, fixed some warnings
Modified:
directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/InMemoryBTree.java
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/InMemoryBTree.java
URL: http://svn.apache.org/viewvc/directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/InMemoryBTree.java?rev=1595428&r1=1595427&r2=1595428&view=diff
==============================================================================
--- directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/InMemoryBTree.java (original)
+++ directory/mavibot/branches/with-txns/mavibot/src/main/java/org/apache/directory/mavibot/btree/InMemoryBTree.java Sat May 17 06:44:37 2014
@@ -831,6 +831,10 @@ import org.slf4j.LoggerFactory;
case BACKED_ON_DISK:
sb.append( "Persistent " );
break;
+
+ default :
+ sb.append( "Wrong type... " );
+ break;
}
sb.append( "BTree" );
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=1595428&r1=1595427&r2=1595428&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 Sat May 17 06:44:37 2014
@@ -33,7 +33,6 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
-import org.apache.directory.mavibot.btree.exception.EndOfFileExceededException;
import org.apache.directory.mavibot.btree.exception.InvalidBTreeException;
import org.apache.directory.mavibot.btree.serializer.ElementSerializer;
import org.apache.directory.mavibot.btree.serializer.LongSerializer;
@@ -763,11 +762,11 @@ public class MavibotInspector
{
// just deserialize the keys and values
// The value
- int valueLength = byteBuffer.getInt();
+ byteBuffer.getInt();
btreeInfo.valueSerializer.deserialize( byteBuffer );
// the key
- int keyLength = byteBuffer.getInt();
+ byteBuffer.getInt();
btreeInfo.keySerializer.deserialize( byteBuffer );
}