Author: doogie
Date: Wed Mar 31 06:08:35 2010
New Revision: 929395
URL:
http://svn.apache.org/viewvc?rev=929395&view=revLog:
Don't attempt to reload an existing cache from disk.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java?rev=929395&r1=929394&r2=929395&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java Wed Mar 31 06:08:35 2010
@@ -77,14 +77,9 @@ public class CacheLineTable<K, V> implem
}
if (CacheLineTable.jdbmMgr != null) {
try {
- long recno = CacheLineTable.jdbmMgr.getNamedObject(cacheName);
- if (recno != 0) {
- this.fileTable = jdbm.htree.HTree.load(CacheLineTable.jdbmMgr, recno);
- } else {
- this.fileTable = jdbm.htree.HTree.createInstance(CacheLineTable.jdbmMgr);
- CacheLineTable.jdbmMgr.setNamedObject(cacheName, this.fileTable.getRecid());
- CacheLineTable.jdbmMgr.commit();
- }
+ this.fileTable = jdbm.htree.HTree.createInstance(CacheLineTable.jdbmMgr);
+ CacheLineTable.jdbmMgr.setNamedObject(cacheName, this.fileTable.getRecid());
+ CacheLineTable.jdbmMgr.commit();
} catch (IOException e) {
Debug.logError(e, module);
}