MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / CVOrRevTreeID

Method CVOrRevTreeID

db/document.go:144–152  ·  view source on GitHub ↗

CVOrRevTreeID() returns the CurrentVersion if available, otherwise falls back to returning the RevTreeID or an empty string.

()

Source from the content-addressed store, hash-verified

142
143// CVOrRevTreeID() returns the CurrentVersion if available, otherwise falls back to returning the RevTreeID or an empty string.
144func (sd *SyncData) CVOrRevTreeID() string {
145 if sd == nil {
146 return ""
147 }
148 if cv := sd.RevAndVersion.CV(); cv != "" {
149 return cv
150 }
151 return sd.RevAndVersion.RevTreeID
152}
153
154// determine set of current channels based on removal entries.
155func (sd *SyncData) getCurrentChannels() base.Set {

Callers 3

ResyncDocumentMethod · 0.45
updateAndReturnDocMethod · 0.45

Calls 1

CVMethod · 0.45

Tested by 1