Fix regression in DB write atomicity

This commit is contained in:
Michael Sproul
2023-01-30 17:55:20 +11:00
committed by Emilia Hane
parent 9d919917f5
commit ac4b5b580c
4 changed files with 44 additions and 21 deletions

View File

@@ -824,8 +824,8 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
key_value_batch.push(KeyValueStoreOp::PutKeyValue(db_key, [].into()));
}
StoreOp::PutRawKVStoreOp(kv_store_op) => {
key_value_batch.push(kv_store_op);
StoreOp::KeyValueOp(kv_op) => {
key_value_batch.push(kv_op);
}
}
}
@@ -870,7 +870,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
StoreOp::PutOrphanedBlobsKey(_) => (),
StoreOp::PutRawKVStoreOp(_) => (),
StoreOp::KeyValueOp(_) => (),
}
}

View File

@@ -166,7 +166,7 @@ pub enum StoreOp<'a, E: EthSpec> {
DeleteBlobs(Hash256),
DeleteState(Hash256, Option<Slot>),
DeleteExecutionPayload(Hash256),
PutRawKVStoreOp(KeyValueStoreOp),
KeyValueOp(KeyValueStoreOp),
}
/// A unique column identifier.