Compare commits

...

1 Commits

Author SHA1 Message Date
cfdd8ae133 Router: don't persist storage for netDb's other than the main one 2023-09-07 16:19:09 -04:00

View File

@ -313,7 +313,8 @@ public abstract class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacad
BUCKET_SIZE, KAD_B, new RejectTrimmer<Hash>());
_dbDir = getDbDir();
try {
_ds = new PersistentDataStore(_context, _dbDir, this);
if (_dbid == null || _dbid.equals(FloodfillNetworkDatabaseSegmentor.MAIN_DBID) || _dbid.isEmpty())
_ds = new PersistentDataStore(_context, "", this);
} catch (IOException ioe) {
throw new RuntimeException("Unable to initialize netdb storage", ioe);
}