Author: j16sdiz
Date: 2008-09-24 15:05:04 +0000 (Wed, 24 Sep 2008)
New Revision: 22796

Modified:
   trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
Log:
doh!

Modified: trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java      
2008-09-24 15:00:42 UTC (rev 22795)
+++ trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java      
2008-09-24 15:05:04 UTC (rev 22796)
@@ -178,7 +178,7 @@
                if (logMINOR)
                        Logger.minor(this, "Fetch " + 
HexUtil.bytesToHex(routingKey) + " for " + callback);

-               if (!configLock.readLock().tryLock(10, TimeUnit.SECOND))
+               if (!configLock.readLock().tryLock(10000, 
TimeUnit.MILLISECONDS))
                        return null;
                try {
                        Map<Long, Condition> lockMap = lockPlainKey(routingKey, 
true);
@@ -266,7 +266,7 @@
                if (logMINOR)
                        Logger.minor(this, "Putting " + 
HexUtil.bytesToHex(routingKey) + " (" + name + ")");

-               if (!configLock.readLock().tryLock(10, TimeUnit.SECOND))
+               if (!configLock.readLock().tryLock(10000, 
TimeUnit.MILLISECONDS))
                        throw new IOException("can't lock in 10 seconds");
                try {
                        Map<Long, Condition> lockMap = lockPlainKey(routingKey, 
false);


Reply via email to