Author: manik.surtani(a)jboss.com
Date: 2008-04-29 19:25:47 -0400 (Tue, 29 Apr 2008)
New Revision: 5760
Modified:
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java
Log:
cache loader timeout
Modified:
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java
===================================================================
---
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java 2008-04-29
17:04:39 UTC (rev 5759)
+++
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java 2008-04-29
23:25:47 UTC (rev 5760)
@@ -158,7 +158,7 @@
/* Open the environment, creating it if it doesn't exist. */
EnvironmentConfig envConfig = new EnvironmentConfig();
envConfig.setAllowCreate(true);
- envConfig.setLockTimeout(cache.getConfiguration().getLockAcquisitionTimeout());
+ envConfig.setLockTimeout(1000 *
cache.getConfiguration().getLockAcquisitionTimeout()); // these are in nanos
envConfig.setTransactional(true);
if (log.isTraceEnabled()) log.trace("Creating JE environment with home dir
" + homeDir);
env = new Environment(homeDir, envConfig);