Author: toad
Date: 2008-07-11 23:59:56 +0000 (Fri, 11 Jul 2008)
New Revision: 21079

Modified:
   branches/db4o/freenet/src/freenet/client/async/InsertCompressor.java
   branches/db4o/freenet/src/freenet/node/Node.java
Log:
Index

Modified: branches/db4o/freenet/src/freenet/client/async/InsertCompressor.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/InsertCompressor.java        
2008-07-11 23:45:41 UTC (rev 21078)
+++ branches/db4o/freenet/src/freenet/client/async/InsertCompressor.java        
2008-07-11 23:59:56 UTC (rev 21079)
@@ -25,7 +25,7 @@
  * 
  * @author toad
  */
-class InsertCompressor {
+public class InsertCompressor {

        /** Database handle to identify which node it belongs to in the 
database */
        public final long nodeDBHandle;

Modified: branches/db4o/freenet/src/freenet/node/Node.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/Node.java    2008-07-11 23:45:41 UTC 
(rev 21078)
+++ branches/db4o/freenet/src/freenet/node/Node.java    2008-07-11 23:59:56 UTC 
(rev 21079)
@@ -737,6 +737,7 @@
                
Db4o.configure().objectClass(freenet.client.FECJob.class).objectField("addedTime").indexed(true);
                
Db4o.configure().objectClass(freenet.client.FECJob.class).objectField("queue").indexed(true);
                
Db4o.configure().objectClass(freenet.client.async.PendingKeyItem.class).objectField("nodeDBHandle").indexed(true);
+               
Db4o.configure().objectClass(freenet.client.async.InsertCompressor.class).objectField("nodeDBHandle").indexed(true);
                /** Maybe we want a different query evaluation mode?
                 * At the moment, a big splitfile insert will result in one 
SingleBlockInserter
                 * for every key, which means one RegisterMe for each ... this 
results in a long pause
@@ -766,9 +767,9 @@
                        public void onDiagnostic(Diagnostic arg0) {
                                if(arg0 instanceof DiagnosticBase) {
                                        DiagnosticBase d = (DiagnosticBase) 
arg0;
-                                       Logger.error(this, "Diagnostic: 
"+d.getClass()+" : "+d.problem()+" : "+d.solution()+" : "+d.reason());
+                                       Logger.error(this, "Diagnostic: 
"+d.getClass()+" : "+d.problem()+" : "+d.solution()+" : "+d.reason(), new 
Exception("debug"));
                                } else
-                                       Logger.error(this, "Diagnostic: 
"+arg0+" : "+arg0.getClass());
+                                       Logger.error(this, "Diagnostic: 
"+arg0+" : "+arg0.getClass(), new Exception("debug"));
                        }

                });


Reply via email to