mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 14:45:56 +00:00
* BdbModule.java
change exception-throw to log WARNING during DB-cleanup
This commit is contained in:
@@ -275,7 +275,8 @@ public class BdbModule implements Lifecycle, Checkpointable, Closeable {
|
||||
public void closeDatabase(String name) {
|
||||
DatabasePlusConfig dpc = databases.remove(name);
|
||||
if (dpc == null) {
|
||||
throw new IllegalStateException("No such database: " + name);
|
||||
LOGGER.warning("No such database: " + name);
|
||||
return;
|
||||
}
|
||||
Database db = dpc.database;
|
||||
try {
|
||||
@@ -553,7 +554,7 @@ public class BdbModule implements Lifecycle, Checkpointable, Closeable {
|
||||
public void setRecoveryCheckpoint(Checkpoint checkpoint) {
|
||||
this.recoveryCheckpoint = checkpoint;
|
||||
}
|
||||
|
||||
|
||||
public void close() {
|
||||
close2();
|
||||
if(shutdownHook!=null) {
|
||||
|
||||
Reference in New Issue
Block a user