debug statements
authorKiran Ayyagari <kayyagari@apache.org>
Mon, 11 May 2015 08:12:13 +0000 (08:12 +0000)
committerKiran Ayyagari <kayyagari@apache.org>
Mon, 11 May 2015 08:12:13 +0000 (08:12 +0000)
mavibot/src/test/java/org/apache/directory/mavibot/btree/SpaceReclaimerTest.java

index 5cab1c8..4d1b869 100644 (file)
@@ -58,6 +58,7 @@ public class SpaceReclaimerTest
         \r
         dbFile = tmpDir.newFile( "spacereclaimer.db" );\r
 \r
+        System.out.println(dbFile.getAbsolutePath());\r
         rm = new RecordManager( dbFile.getAbsolutePath() );\r
         rm.setSpaceReclaimerThreshold( 10 );\r
         \r
@@ -91,12 +92,12 @@ public class SpaceReclaimerTest
         for ( int i=0; i < total; i++ )\r
         {\r
             uidTree.insert( i, String.valueOf( i ) );\r
-            System.out.println( dbFile.length() );\r
         }\r
-    \r
+\r
+        System.out.println( "Total size before closing " + dbFile.length() );\r
         closeAndReopenRM();\r
         \r
-        System.out.println( dbFile.length() );\r
+        System.out.println( "Total size AFTER closing " + dbFile.length() );\r
         \r
         int count = 0;\r
         TupleCursor<Integer, String> cursor = uidTree.browse();\r