throw new IllegalStateException("Failed to open main data LevelDB: "+e.getMessage(), e);
}
DB indexDB;
try {
options = options.cacheSize(_levelDBConfig.dataCacheSize.getNumberOfBytes());
indexDB = factory.open(lastModDir, options);
} catch (IOException e) {
throw new IllegalStateException("Failed to open last-mod index LevelDB: "+e.getMessage(), e);
}
return new LevelDBStoreBackend(storableConv, dbRoot, dataDB, indexDB);
}