Author: manik.surtani(a)jboss.com
Date: 2008-04-29 12:06:20 -0400 (Tue, 29 Apr 2008)
New Revision: 5755
Modified:
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java
Log:
BDBJECacheLoader to adhere to lock acquisition timeout specified in the cache
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
16:01:42 UTC (rev 5754)
+++
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/bdbje/BdbjeCacheLoader.java 2008-04-29
16:06:20 UTC (rev 5755)
@@ -158,6 +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.setTransactional(true);
if (log.isTraceEnabled()) log.trace("Creating JE environment with home dir
" + homeDir);
env = new Environment(homeDir, envConfig);
Show replies by date