Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/ROOT/pages/server-compatibility-eventing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ This is necessary because:
But when an update originates outside of Couchbase mobile then multiple mutations are generated.
That is because Sync Gateway must update both the document's body and its _sync metadata (XATTRs).

* _Eventing_ detects these mutations and invokes its `OnUpdate` *for each*; whether it is for the modified body of the document, XATTRs, or both.
* _Eventing_ detects these mutations and invokes its `OnUpdate` *for each*; whether it is for the modified body of the document, Sync Gateway metadata, or both.
It is here that you need to code the function to apply the same update once only.
One way to do this is to use the crc64 function call -- see: {server-eventing-constructs-crc64--xref} for more on how to do this.
One way to do this is to use the crc64 function call to identify when an update is to the Sync Gateway metadata only -- see: {server-eventing-constructs-crc64--xref} for more on how to do this.

_Eventing_ prevents inadvertent use of its functions on _Sync Gateway_ read-write buckets.
You will see the following warning if you try to do this: +
Expand Down