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

Method getCurrentChannels

db/document.go:155–163  ·  view source on GitHub ↗

determine set of current channels based on removal entries.

()

Source from the content-addressed store, hash-verified

153
154// determine set of current channels based on removal entries.
155func (sd *SyncData) getCurrentChannels() base.Set {
156 ch := base.SetOf()
157 for channelName, channelRemoval := range sd.Channels {
158 if channelRemoval == nil || channelRemoval.Seq == 0 {
159 ch.Add(channelName)
160 }
161 }
162 return ch
163}
164
165func (sd *SyncData) SetCV(hlv *HybridLogicalVector) {
166 sd.RevAndVersion.CurrentSource = hlv.SourceID

Callers 5

channelsForRevTreeIDMethod · 0.80
getCurrentVersionMethod · 0.80
documentUpdateFuncMethod · 0.80
postWriteUpdateHLVMethod · 0.80

Calls 2

SetOfFunction · 0.92
AddMethod · 0.45

Tested by

no test coverage detected