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
Fix _sync xattr field name: use _deleted instead of deleted
The Sync Gateway _sync xattr uses `_deleted` (with underscore) not
`deleted` as the field name to indicate tombstone status.
Changes:
- Query `_sync._deleted` instead of `_sync.deleted`
- Add WARNING comment that querying _sync directly is unsupported in production
- Reference Sync Gateway documentation on shared bucket access
This fix enables proper detection of tombstones vs live documents
in CBS when using shared bucket access mode.
According to Sync Gateway docs, the _sync structure is internal and
can change between versions. Direct N1QL queries on _sync should only
be used for testing/debugging, not in production applications.
References:
- https://docs.couchbase.com/sync-gateway/current/shared-bucket-access.html
- Sync Gateway GitHub issues discussing _sync structure
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments