Skip to content

feat: Implement snapshot uploading/downloading#330

Merged
adamspofford-dfinity merged 7 commits intomainfrom
spofford/snapshot-download
Feb 3, 2026
Merged

feat: Implement snapshot uploading/downloading#330
adamspofford-dfinity merged 7 commits intomainfrom
spofford/snapshot-download

Conversation

@adamspofford-dfinity
Copy link
Contributor

No description provided.

@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review February 2, 2026 19:43
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner February 2, 2026 19:43
canister_id: Principal,
snapshot_id: &[u8],
chunk_hash: &[u8],
paths: LWrite<&SnapshotPaths>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially thought paths could use LRead instead. However, since this operation runs within a with_write closure, and the lock system doesn't support downgrading—i.e., treating a write lock as sufficient when only a read lock is needed—we need to keep it as is.

@adamspofford-dfinity adamspofford-dfinity merged commit 1b89d74 into main Feb 3, 2026
80 checks passed
@adamspofford-dfinity adamspofford-dfinity deleted the spofford/snapshot-download branch February 3, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants