diff --git a/storage/src/rocksdb_storage/storage.rs b/storage/src/rocksdb_storage/storage.rs index b386ecfc..72ddc677 100644 --- a/storage/src/rocksdb_storage/storage.rs +++ b/storage/src/rocksdb_storage/storage.rs @@ -428,7 +428,9 @@ impl RocksDbStorage { let mut iter = self.db.raw_iterator_cf(&cf_handle); iter.seek_to_first(); while iter.valid() { - self.db.delete(iter.key().expect("should have key")); + self.db + .delete(iter.key().expect("should have key")) + .map_err(|e| StorageError(e.to_string()))?; iter.next() } Ok(())