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

Method CacheCompactActive

db/util_testing.go:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33)
34
35func (db *DatabaseContext) CacheCompactActive() bool {
36 channelCache := db.changeCache.getChannelCache()
37 compactingCache, ok := channelCache.(*channelCacheImpl)
38 if !ok {
39 return false
40 }
41 return compactingCache.isCompactActive()
42}
43
44func (db *DatabaseContext) WaitForCaughtUp(targetCount int64) error {
45 for i := 0; i < 100; i++ {

Callers 1

waitForCompactStoppedFunction · 0.80

Calls 2

isCompactActiveMethod · 0.80
getChannelCacheMethod · 0.45

Tested by 1

waitForCompactStoppedFunction · 0.64