Author: toad
Date: 2009-03-25 18:59:57 +0000 (Wed, 25 Mar 2009)
New Revision: 26182
Modified:
branches/db4o/freenet/src/freenet/node/NodeRestartJobsQueue.java
Log:
Logging. Explicitly store the job since we store the arrays to limited depth.
Modified: branches/db4o/freenet/src/freenet/node/NodeRestartJobsQueue.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/NodeRestartJobsQueue.java
2009-03-25 18:59:26 UTC (rev 26181)
+++ branches/db4o/freenet/src/freenet/node/NodeRestartJobsQueue.java
2009-03-25 18:59:57 UTC (rev 26182)
@@ -57,7 +57,9 @@
private Set<DBJob>[] dbJobsEarly;
public synchronized void queueRestartJob(DBJob job, int priority,
ObjectContainer container, boolean early) {
+ if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this,
"Queueing restart job "+job+" at priority "+priority+" early="+early);
Set<DBJob> jobs = early ? dbJobsEarly[priority] :
dbJobs[priority];
+ container.store(job);
container.activate(jobs, 1);
if(jobs.add(job)) {
/*
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs