Skip to content

Add method to write persistent state to an arbitrary location #1020

Description

@SmaGMan

Blocker for

#1021

Current situation

Outside of tycho_core::storage, ShardStateWriter is currently used directly to write persistent state. ShardStateWriter operates on a concrete CellsDb and by default will only persist the top part of the state from the main DB. It does not handle states that are split on parts.

Required change

Extract from PersistentStateStorage::store_shard_state the logic that can write a persistent state (main and parts) into the provided location, and must not update the descriptor cache, and must not update block handle flags.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions