Skip to content

Commit fa6927b

Browse files
committed
revert
1 parent e58945e commit fa6927b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

beacon_node/store/src/hot_cold_store.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3169,16 +3169,11 @@ pub fn migrate_database<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>>(
31693169
// Store slot -> state_root and state_root -> slot mappings.
31703170
store.store_cold_state_summary(&state_root, slot, &mut cold_db_ops)?;
31713171
} else {
3172-
// TODO(holesky)
3173-
// I've updated to immediately commit the state to the cold db
3174-
// instead of doing it in batches so we don't load tons of states into memory
3175-
let mut immediate_cold_op = vec![];
31763172
let state: BeaconState<E> = store
31773173
.get_hot_state(&state_root)?
31783174
.ok_or(HotColdDBError::MissingStateToFreeze(state_root))?;
31793175

3180-
store.store_cold_state(&state_root, &state, &mut immediate_cold_op)?;
3181-
store.cold_db.do_atomically(immediate_cold_op)?;
3176+
store.store_cold_state(&state_root, &state, &mut cold_db_ops)?;
31823177
}
31833178

31843179
// Cold states are diffed with respect to each other, so we need to finish writing previous

0 commit comments

Comments
 (0)