Author: nextgens
Date: 2007-03-30 15:28:18 +0000 (Fri, 30 Mar 2007)
New Revision: 12450
Modified:
trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
Log:
Dirty fix solving the "my node doesn't start anymore" problem.
To toad : please read comments and take action when you get back :)
We might need 1023 but I don't have time to spend on it right now.
Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-03-30
09:41:14 UTC (rev 12449)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-03-30
15:28:18 UTC (rev 12450)
@@ -496,7 +496,12 @@
if(atime.count() < chkDB.count())
throw new DatabaseException("Needs
repopulation");
} catch (DatabaseException e) {
- WrapperManager.signalStarting(Integer.MAX_VALUE-1);
+ WrapperManager.signalStarting(5*60*60*1000);
+ // Of course it's not a solution but a quick fix
+ // Integer.MAX_VALUE seems to trigger an overflow or
whatever ...
+ // Either we find out what the maximum value is and we
do a static method somewhere ensuring
+ // it won't overflow ... or we debug the wrapper.
+ // NB: it might be a wrapper-version-missmatch problem
(nextgens)
if(atime != null) atime.close();
environment.truncateDatabase(null,
prefix+"CHK_accessTime", false);
System.err.println("Reconstructing access times
index...");