Skip to content

Commit

Permalink
fixup! Fix regression in DB write atomicity
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Feb 7, 2023
1 parent e83410b commit 104db55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3036,7 +3036,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
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));
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/store/src/hot_cold_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
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!(
Expand Down

0 comments on commit 104db55

Please sign in to comment.