Author: j16sdiz
Date: 2008-05-11 17:04:42 +0000 (Sun, 11 May 2008)
New Revision: 19896
Modified:
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
Log:
no log for lock
Modified:
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
===================================================================
---
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
2008-05-11 17:04:21 UTC (rev 19895)
+++
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
2008-05-11 17:04:42 UTC (rev 19896)
@@ -37,6 +37,7 @@
public class SaltedHashFreenetStore implements FreenetStore {
private static final boolean OPTION_SAVE_PLAINKEY = true;
+ private static final boolean logLOCK = false;
private static boolean logMINOR;
private static boolean logDEBUG;
@@ -1091,7 +1092,7 @@
* then one lock at a time (or deadlock may occur).
*/
private boolean lockEntry(long offset) {
- if (logDEBUG)
+ if (logDEBUG && logLOCK)
Logger.debug(this, "try locking " + offset, new
Exception());
Long lxr = new Long(offset);
@@ -1112,7 +1113,7 @@
return false;
}
- if (logDEBUG)
+ if (logDEBUG && logLOCK)
Logger.debug(this, "locked " + offset, new Exception());
return true;
}
@@ -1121,7 +1122,7 @@
* Unlock the entry
*/
private void unlockEntry(long offset) {
- if (logDEBUG)
+ if (logDEBUG && logLOCK)
Logger.debug(this, "unlocking " + offset);
Long lxr = new Long(offset);