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
The _sync xattr does not have a _deleted field at the root level.
Based on actual _sync structure analysis, tombstone status is
indicated by:
Primary indicator:
- flags == 1: Document is a tombstone
Secondary indicators:
- tombstoned_at: Timestamp when document became tombstone (only present for tombstones)
- channels.*.del == true: Per-channel deletion marker
- history.deleted: Array of deleted revision indices
Changes:
- Check _sync.flags == 1 to detect tombstones
- Also check for tombstoned_at field as confirmation
- Display flags value and tombstoned_at in output
- Add #[allow(deprecated)] to test examples to suppress warnings for deprecated Database methods
This fix enables proper tombstone detection in CBS when using
shared bucket access mode.
Real _sync structure discovered via N1QL query:
- Live document: flags absent or 0, no tombstoned_at
- Tombstone: flags == 1, tombstoned_at present, channels.*.del == true
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments