Fix replay_keys
Counters should never have an entry with zero value.
This commit is contained in:
parent
4230fdfffe
commit
0980c7130a
@ -191,7 +191,9 @@ impl JournalDB {
|
||||
|
||||
// this is the first entry for this node in the journal.
|
||||
// it is initialised to 1 if it was already in.
|
||||
counters.insert(h.clone(), if Self::is_already_in(backing, h) {1} else {0});
|
||||
if Self::is_already_in(backing, h) {
|
||||
counters.insert(h.clone(), 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user