From 4394c31a219411c5eda741d2149268af2c8a2dbd Mon Sep 17 00:00:00 2001 From: arkpar Date: Mon, 29 Aug 2016 12:07:30 +0200 Subject: [PATCH] Disabled counter check --- util/src/journaldb/archivedb.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/src/journaldb/archivedb.rs b/util/src/journaldb/archivedb.rs index 863b490a6..5f1eb71d4 100644 --- a/util/src/journaldb/archivedb.rs +++ b/util/src/journaldb/archivedb.rs @@ -163,7 +163,6 @@ impl JournalDB for ArchiveDB { for i in self.overlay.drain().into_iter() { let (key, (value, rc)) = i; if rc > 0 { - assert!(rc == 1); batch.put(self.column, &key, &value); inserts += 1; } @@ -192,7 +191,6 @@ impl JournalDB for ArchiveDB { for i in self.overlay.drain().into_iter() { let (key, (value, rc)) = i; if rc > 0 { - assert!(rc == 1); if try!(self.backing.get(self.column, &key)).is_some() { return Err(BaseDataError::AlreadyExists(key).into()); }