Skip to content

Commit cfdd8ae

Browse files
author
eyedeekay
committed
Router: don't persist storage for netDb's other than the main one
1 parent c1c8cfc commit cfdd8ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ public synchronized void startup() {
313313
BUCKET_SIZE, KAD_B, new RejectTrimmer<Hash>());
314314
_dbDir = getDbDir();
315315
try {
316-
_ds = new PersistentDataStore(_context, _dbDir, this);
316+
if (_dbid == null || _dbid.equals(FloodfillNetworkDatabaseSegmentor.MAIN_DBID) || _dbid.isEmpty())
317+
_ds = new PersistentDataStore(_context, "", this);
317318
} catch (IOException ioe) {
318319
throw new RuntimeException("Unable to initialize netdb storage", ioe);
319320
}

0 commit comments

Comments
 (0)