comps[idx] = comp;
}
ids.add(dbId);
DatabaseInternal db;
try {
// reset existing DBs
db = dbman.getDatabase(dbId);
db.setLSMDB(new LSMDatabase(dbName, dbId, dbs.getConfig().getBaseDir()
+ dbName + File.separatorChar, numIndex, true, comps,
dbs.getConfig().getCompression(),
dbs.getConfig().getMaxNumRecordsPerBlock(),
dbs.getConfig().getMaxBlockFileSize(),
dbs.getConfig().getDisableMMap(),
dbs.getConfig().getMMapLimit()));
} catch (BabuDBException e) {
db = new DatabaseImpl(dbs, new LSMDatabase(dbName, dbId,
dbs.getConfig().getBaseDir() + dbName + File.separatorChar,
numIndex, true, comps, dbs.getConfig().getCompression(),
dbs.getConfig().getMaxNumRecordsPerBlock(),
dbs.getConfig().getMaxBlockFileSize(),
dbs.getConfig().getDisableMMap(),
dbs.getConfig().getMMapLimit()));
dbman.putDatabase(db);
}
Logging.logMessage(Logging.LEVEL_INFO, this, "loaded DB %s" + " successfully. [LSN %s]",
dbName, db.getLSMDB().getOndiskLSN());
}
}
// delete remaining outdated DBs
Set<Integer> outdatedIds = dbman.getAllDatabaseIds();