directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r946873 - /directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/IndexValueSerializer.java
Date Fri, 21 May 2010 05:03:53 GMT
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() )



Mime
View raw message