-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This matches CBS behavior and allows all SG tests to pass. I found the logic in `checkCASXattr` to be really confusing and I'm not sure how to make it easier. Formerly, a document was declared a tombstone based on whether it has nil document body. However, having a nil document body is a valid state for a document, so I added field to determine whether it is a tombstone. I didn't write a schema migration to add this field since we have no released version of SG that can use a persistent rosmar database. I switched some bitflags to an options struct to make it easier to read and more idiomatic in go, rather than add two new flags. This passes all tests in Sync Gateway, including the ones that are currently skipped.
- Loading branch information
Showing
4 changed files
with
193 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.