MCPcopy Create free account
hub / github.com/couchbase/moss / isEmpty

Method isEmpty

segment.go:906–915  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

904}
905
906func (b *batch) isEmpty() bool {
907 if len(b.childBatches) != 0 {
908 // Presence of child batches indicates a non-empty batch even
909 // if the child batches themselves are empty. This is so that
910 // collection creation/deletions will work.
911 return false
912 }
913
914 return b.Len() <= 0
915}

Callers 4

compactMethod · 0.45
persistMethod · 0.45
ExecuteBatchMethod · 0.45
mergerMainMethod · 0.45

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected