Skip to content

Commit

Permalink
Fix state db unregister
Browse files Browse the repository at this point in the history
Remove system entries including members, instead of only removing top level systems.
  • Loading branch information
earocorn committed Sep 30, 2024
1 parent 15efc0d commit 6292f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public synchronized void registerDatabase(String uid, IObsSystemDatabase db)

systemStateDb.getDataStreamStore().removeEntries(dsFilter);
systemStateDb.getCommandStreamStore().removeEntries(csFilter);
var count = systemStateDb.getSystemDescStore().removeEntries(topLevelSystemsFilter);
var count = systemStateDb.getSystemDescStore().removeEntries(procFilter);

if (count > 0)
log.info("Database #{} now handles system {}. Removing all records from state DB", db.getDatabaseNum(), uid);
Expand Down

0 comments on commit 6292f2c

Please sign in to comment.