From 104db55d88664bb6eebb3ff2bc77ad1bc0ae08ff Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 7 Feb 2023 11:39:52 +0100 Subject: [PATCH] fixup! Fix regression in DB write atomicity --- beacon_node/beacon_chain/src/beacon_chain.rs | 2 +- beacon_node/store/src/hot_cold_store.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 57b59d988ac..d663e5090e5 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -3036,7 +3036,7 @@ impl BeaconChain { if blobs.blobs.len() > 0 { //FIXME(sean) using this for debugging for now info!( - self.log, "Writing blobs to store"; + self.log, "Writing blobs to store"; "block_root" => ?block_root ); ops.push(StoreOp::PutBlobs(block_root, blobs)); diff --git a/beacon_node/store/src/hot_cold_store.rs b/beacon_node/store/src/hot_cold_store.rs index f508734d4ee..99b516ee99c 100644 --- a/beacon_node/store/src/hot_cold_store.rs +++ b/beacon_node/store/src/hot_cold_store.rs @@ -1870,7 +1870,7 @@ impl, Cold: ItemStore> HotColdDB oldest_blob_slot: Some(end_slot + 1), }, )?; - ops.push(StoreOp::PutRawKVStoreOp(update_blob_info)); + ops.push(StoreOp::KeyValueOp(update_blob_info)); self.do_atomically(ops)?; info!(