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

Function waitForCompaction

db/channel_cache_test.go:520–529  ·  view source on GitHub ↗
(cache *channelCacheImpl)

Source from the content-addressed store, hash-verified

518}
519
520func waitForCompaction(cache *channelCacheImpl) (compactionComplete bool) {
521 for i := 0; i <= 10; i++ {
522 if cache.compactRunning.IsTrue() {
523 time.Sleep(100 * time.Millisecond)
524 } else {
525 return true
526 }
527 }
528 return false
529}
530
531// Used for singleChannelCache testing with non-shared testQueryHandler
532func testQueryHandlerFactory(collectionID uint32) (ChannelQueryHandler, error) {

Calls 1

IsTrueMethod · 0.80

Tested by

no test coverage detected