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

Method Stop

db/sequence_allocator.go:93–98  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

91}
92
93func (s *sequenceAllocator) Stop(ctx context.Context) {
94
95 // Trigger stop and release of unused sequences
96 close(s.terminator)
97 s.releaseUnusedSequences(ctx)
98}
99
100// Release sequence monitor runs in its own goroutine, and releases allocated sequences
101// that aren't used within 'releaseSequenceTimeout'.

Callers 1

Calls 1

Tested by 1