Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Dec 13, 2024
1 parent 5ad68f8 commit 9452035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neps/nep-0568.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ This mapping strategy enables efficient shard management during resharding event
supporting smooth transitions without altering storage structures directly.

#### Integration with cold storage (archival nodes)

Cold storage uses the same mapping strategy to manage shard state during resharding:
* When state data is migrated from hot to cold storage, it retains the parent shard’s `ShardUId` prefix, ensuring consistency with the mapping strategy.
* While copying data for the final block of the epoch where resharding occured, the `DBCol::StateShardUIdMapping` column is copied into cold storage. This ensures that mappings are updated alongside the shard state data.
* While copying data for the last block of the epoch where resharding occured, the `DBCol::StateShardUIdMapping` column is copied into cold storage. This ensures that mappings are updated alongside the shard state data.
* These mappings are permanent in cold storage, aligning with its role in preserving historical state.

This approach minimizes complexity while maintaining consistency across hot and cold storage.
Expand Down

0 comments on commit 9452035

Please sign in to comment.