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

Method RequestSort

segment.go:879–892  ·  view source on GitHub ↗

RequestSort() returns true if all child batches are sorted and false if sorting has been asynchronously scheduled.

()

Source from the content-addressed store, hash-verified

877// RequestSort() returns true if all child batches are sorted and
878// false if sorting has been asynchronously scheduled.
879func (b *batch) RequestSort() bool {
880 if b == deletedChildBatchMarker {
881 return true
882 }
883
884 // false because we must never wait for sorter else it can deadlock.
885 sorted := b.segment.RequestSort(false)
886
887 for _, childBatch := range b.childBatches {
888 sorted = childBatch.RequestSort() && sorted
889 }
890
891 return sorted
892}
893
894func (b *batch) doSort() {
895 if b == deletedChildBatchMarker {

Callers

nothing calls this directly

Calls 1

RequestSortMethod · 0.65

Tested by

no test coverage detected