You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by fe...@apache.org on 2010/05/21 07:03:53 UTC

svn commit: r946873 - /directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java

Author: felixk
Date: Fri May 21 05:03:53 2010
New Revision: 946873

URL: http://svn.apache.org/viewvc?rev=946873&view=rev
Log:
Looks more logical to me ?

Modified:
    directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java

Modified: directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java?rev=946873&r1=946872&r2=946873&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java (original)
+++ directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java Fri May 21 05:03:53 2010
@@ -110,7 +110,7 @@ public class IndexValueSerializer implem
 
     
     /**
-     * Serialize an AvlTree value
+     * Serialize a BTree value
      */
     private byte[] serialize( BTree bTree ) throws IOException
     {
@@ -118,9 +118,9 @@ public class IndexValueSerializer implem
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         // First, write the type
-        out.write( AVL_TREE_VALUE );
+        out.write( BTREE_VALUE );
         
-        // Marshal the AvlTree here. 
+        // Marshal the BTree here. 
         // TODO : add the code
 
         out.flush();
@@ -128,7 +128,7 @@ public class IndexValueSerializer implem
         if ( LOG.isDebugEnabled() )
         {
             LOG.debug( ">------------------------------------------------" );
-            LOG.debug( "Serializes an AVL tree" );
+            LOG.debug( "Serializes an BTree" );
         }
 
         return baos.toByteArray();
@@ -144,8 +144,11 @@ public class IndexValueSerializer implem
         ObjectOutputStream out = new ObjectOutputStream( baos );
 
         // First, write the type
-        out.write( BTREE_VALUE );
+        out.write( AVL_TREE_VALUE );
         
+        // Marshal the AvlTree here. 
+        // TODO : add the code
+
         out.flush();
 
         if ( LOG.isDebugEnabled() )