Skip to content

Commit e8e4e67

Browse files
committed
CBG-4849: updates to api docs for ISGR
1 parent ff08ca5 commit e8e4e67

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/api/components/schemas.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,14 @@ Replication:
709709
- custom
710710
x-enumDescriptions:
711711
default: |-
712-
In priority order, this will cause
712+
For Sync Gateway versions < 4.x, in priority order, this will cause
713713
- Deletes to always win (the delete with the longest revision history wins if both revisions are deletes)
714714
- The revision with the longest revision history to win. This means the the revision with the most changes and therefore the highest Revision Tree ID will win.
715+
716+
For Sync Gateway versions >= 4.x, this will use
717+
- Timestamp based conflict resolution (often referred to as "last write wins", or LWW). Which uses a document timestamp from most recent document revisions to compare.
718+
- The revision with the most recent timestamp wins.
719+
- If replicating a document that was last updated/written pre upgrade to SG 4.x, the default policy for versions < 4.x will be used.
715720
localWins: This will result in local revisions always being the winner in any conflict.
716721
remoteWins: This will result in remote revisions always being the winner in any conflict.
717722
custom: This will result in conflicts going through your own custom conflict resolver. You must provide this logic as a Javascript function in the `custom_conflict_resolver` parameter.
@@ -744,6 +749,8 @@ Replication:
744749
```
745750
746751
Using complex `custom_conflict_resolver` functions can noticeably degrade performance. Use a built-in resolver whenever possible.
752+
753+
If a document merge is being done, the `_rev` and `_cv` properties should not be included in the returned document body as Sync Gateway will generate new values for these.
747754
748755
This is an Enterprise Edition only feature.
749756
type: string

0 commit comments

Comments
 (0)