Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Split StorageLayout trait into StorageLayoutR + StorageLayoutW #4153

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pakhomov-dfinity
Copy link
Contributor

@pakhomov-dfinity pakhomov-dfinity commented Feb 27, 2025

We have ReadPolicy and WritePolicy for CheckpointLayout, CanisterLayout, PageMapLayout, SnapshotLayout. But the trait we use to expose functionality for PageMapLayout into replicated_state didn't do any distinction for readable and writeable data. This change splits StorageLayout into StorageLayoutR needed to deserialize data and retrieve information about existing files, and StorageLayoutW for creating new files.
Also removed unused logic of writing base files .

@github-actions github-actions bot added the chore label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants