You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GH-25] Fix persistent split/merged flags causing data corruption (#41)
* Fix persistent split/merged flags causing data corruption
The bool-typed fields `merged` and `split` in the ProllyNode struct were being
persisted through serialization and never reset to false, causing severe data
corruption during tree operations.
This commit fixes the issue by:
1. Making split/merged flags transient using #[serde(skip)]
2. Ensuring flags are always reset to false when nodes are retrieved from storage
3. Adding comprehensive tests to verify the fix and prevent regressions
The fix prevents catastrophic data corruption where:
- Split nodes would have their edges incorrectly hoisted to parent on every operation
- Merged nodes would have their siblings incorrectly dropped from parent
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Apply cargo fmt formatting
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>
0 commit comments