Skip to content

fix: avoid panic when forking a shallow snapshot#925

Merged
zxch3n merged 1 commit intoloro-dev:mainfrom
zxch3n:codex/fix-issue-924-shallow-fork
Mar 16, 2026
Merged

fix: avoid panic when forking a shallow snapshot#925
zxch3n merged 1 commit intoloro-dev:mainfrom
zxch3n:codex/fix-issue-924-shallow-fork

Conversation

@zxch3n
Copy link
Copy Markdown
Member

@zxch3n zxch3n commented Mar 16, 2026

Summary

  • wrap shallow snapshot decode in fork() with a barrier so the internal checkout path holds the txn lock
  • add Rust and WASM regression tests for the shallow-snapshot -> import -> fork flow
  • add a patch changeset for loro-crdt

Closes #924.

Testing

  • cargo test -p loro issue_924_fork_shallow_snapshot -- --nocapture
  • pnpm -C crates/loro-wasm build-release

@zxch3n zxch3n merged commit e030672 into loro-dev:main Mar 16, 2026
1 check passed
@zxch3n zxch3n deleted the codex/fix-issue-924-shallow-fork branch March 16, 2026 09:58
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.

Forking a shallow snapshot throws

1 participant