From 63f2f42035f0bef9b508e74fff73c6b1f3781c59 Mon Sep 17 00:00:00 2001 From: arkpar Date: Sun, 7 Feb 2016 22:16:58 +0100 Subject: [PATCH] Restored trace --- util/src/journaldb.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/src/journaldb.rs b/util/src/journaldb.rs index 371e60c58..e805f0a60 100644 --- a/util/src/journaldb.rs +++ b/util/src/journaldb.rs @@ -176,10 +176,13 @@ impl JournalDB { let canon_inserts = canon_inserts.drain(..).collect::>(); // Purge removed keys if they are not referenced and not re-inserted in the canon commit + let mut deletes = 0; for h in to_remove.iter().filter(|h| !counters.contains_key(h) && !canon_inserts.contains(h)) { try!(batch.delete(&h)); + deletes += 1; } try!(batch.put(&LAST_ERA_KEY, &encode(&end_era))); + trace!("JournalDB: delete journal for time #{}.{}, (canon was {}): {} entries", end_era, index, canon_id, deletes); } // Commit overlay insertions