Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2016 from ethcore/archivedb-assert
Browse files Browse the repository at this point in the history
Disable ArchiveDB counter check
  • Loading branch information
rphmeier authored Sep 1, 2016
2 parents c8f3be2 + 4394c31 commit ca03cfa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions util/src/journaldb/archivedb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit ca03cfa

Please sign in to comment.