NetDB: RI Publish improvements part 1

Speed up initial publish

After reading in 500 RIs,
PersistentDataStore.ReadJob calls setNetDbReady() which calls publish(),
but that fails because netdb.isInitialized() returns false
until PersistentDataStore finishes reading in all the RIs.

Fix isInitialized() so it will return true before we call setNetDbReady().
Also add a missing check to make sure we don't call setNetDbReady() twice.
and a check in setNetDbReady() so we don't call publish() twice.
This commit is contained in:
zzz
2025-01-27 13:17:29 -05:00
parent d2150b6d3b
commit 1bfe9d0d42
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2025-01-27 zzz
* NetDB: RI publishing improvements
2025-01-26 zzz
* Transport: Increase min peer test version
2025-01-21 zzz
* Util: Recognize zen5 processors

View File

@ -20,7 +20,7 @@ public class RouterVersion {
public final static String VERSION = CoreVersion.VERSION;
/** for example: "beta", "alpha", "rc" */
public final static String QUALIFIER = "-rc";
public final static long BUILD = 5;
public final static long BUILD = 6;
/** for example "-test" */
public final static String EXTRA = "";
public final static String FULL_VERSION = VERSION + "-" + BUILD + QUALIFIER + EXTRA;