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

Method SyncIsEmpty

db/document.go:636–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

634}
635
636func (s *SyncData) SyncIsEmpty() bool {
637 if s == nil {
638 return true
639 }
640 isEmpty := s.GetRevTreeID() == "" && len(s.History) == 0 && s.Sequence == 0
641 return isEmpty
642}
643
644// Converts the string hex encoding that's stored in the sync metadata to a uint64 cas value
645func (s *SyncData) GetSyncCas() uint64 {

Callers 1

Calls 1

GetRevTreeIDMethod · 0.95

Tested by

no test coverage detected