Skip to content

Commit

Permalink
Router: check \!isClientDb() in KNDF before calling remove
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Oct 2, 2023
1 parent d7d51f6 commit f0b6638
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1440,9 +1440,9 @@ public void fail(Hash dbEntry) {
// are any updates
if (_log.shouldLog(Log.INFO))
_log.info("Dropping a lease: " + dbEntry);
try {
if (!isClientDb()) {
_ds.remove(dbEntry, false);
} catch (UnsupportedOperationException uoe) {
} else {
// if this happens it's because we're a TransientDataStore instead,
// so just call remove without the persist option.
_ds.remove(dbEntry);
Expand Down

0 comments on commit f0b6638

Please sign in to comment.