Author: manik.surtani(a)jboss.com
Date: 2008-04-29 19:26:38 -0400 (Tue, 29 Apr 2008)
New Revision: 5761
Modified:
core/trunk/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java
Log:
cache loader timeout
Modified: core/trunk/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java 2008-04-29
23:25:47 UTC (rev 5760)
+++ core/trunk/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java 2008-04-29
23:26:38 UTC (rev 5761)
@@ -159,7 +159,7 @@
EnvironmentConfig envConfig = new EnvironmentConfig();
envConfig.setAllowCreate(true);
envConfig.setTransactional(true);
- envConfig.setLockTimeout(cache.getConfiguration().getLockAcquisitionTimeout());
+ envConfig.setLockTimeout(1000 *
cache.getConfiguration().getLockAcquisitionTimeout()); // these are in nanos
if (log.isTraceEnabled()) log.trace("Creating JE environment with home dir
" + homeDir);
env = new Environment(homeDir, envConfig);
if (log.isDebugEnabled()) log.debug("Created JE environment " + env +
" for cache loader " + this);
Show replies by date