mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
Quiet JUnite test issues
* BdbModuleTest.java, CachedBdbMapTest.java
use putIfAbsent() in preference to put() (which logs warning)
* BdbModule.java
register big-cache DBs in implementation-specific methods, so always auto-closed on env close
This commit is contained in:
1 parent
99020c4981
commit
5a0fe30366
3 files changed
+7
-4
No files matched your search
@@ -389,6 +389,7 @@ Serializable, Closeable {
|
||||
}
|
||||
CachedBdbMap<K, V> r = new CachedBdbMap<K,V>(dbName);
|
||||
r.initialize(bdbEnvironment, key, value, classCatalog);
|
||||
oiCaches.put(dbName, r);
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -417,6 +418,7 @@ Serializable, Closeable {
|
||||
}
|
||||
ObjectIdentityBdbCache<V> oic = new ObjectIdentityBdbCache<V>();
|
||||
oic.initialize(bdbEnvironment, dbName, valueClass, classCatalog);
|
||||
oiCaches.put(dbName, oic);
|
||||
return oic;
|
||||
}
|
||||
|
||||
@@ -451,7 +453,6 @@ Serializable, Closeable {
|
||||
} else {
|
||||
oic = getCBMMap(dbName, recycle, String.class, valueClass);
|
||||
}
|
||||
oiCaches.put(dbName, oic);
|
||||
return oic;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user