mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
Misc fixes from H1-to-H3 testing
* BdbModule.java
be more robust about 0/-1 as 'don't care' values
* AbstractFrontier.java
reorder settable properties for ease of discovery
* FetchHTTP.java
correct type to allow setting property
This commit is contained in:
1 parent
07adde3a73
commit
b7631e2b02
3 files changed
+78
-77
No files matched your search
@@ -162,7 +162,7 @@ Serializable, Closeable {
|
||||
this.dir = dir;
|
||||
}
|
||||
|
||||
int cachePercent = 60;
|
||||
int cachePercent = -1;
|
||||
public int getCachePercent() {
|
||||
return cachePercent;
|
||||
}
|
||||
@@ -243,8 +243,10 @@ Serializable, Closeable {
|
||||
throws DatabaseException {
|
||||
EnvironmentConfig config = new EnvironmentConfig();
|
||||
config.setAllowCreate(create);
|
||||
config.setLockTimeout(5000000);
|
||||
config.setCachePercent(cachePercent);
|
||||
config.setLockTimeout(5000000);
|
||||
if(cachePercent>0) {
|
||||
config.setCachePercent(cachePercent);
|
||||
}
|
||||
config.setSharedCache(sharedCache);
|
||||
|
||||
// we take the advice literally from...
|
||||
|
||||
Reference in new issue
Block a user