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

Method setFlag

db/document.go:761–767  ·  view source on GitHub ↗
(flag uint8, state bool)

Source from the content-addressed store, hash-verified

759}
760
761func (doc *Document) setFlag(flag uint8, state bool) {
762 if state {
763 doc.Flags |= flag
764 } else {
765 doc.Flags &^= flag
766 }
767}
768
769// RevLoaderFunc and RevWriterFunc manage persistence of non-winning revision bodies that are stored outside the document.
770type RevLoaderFunc func(key string) ([]byte, error)

Calls

no outgoing calls

Tested by 1

TestRevTreeConflictCheckFunction · 0.76