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

Function waitForCompactStopped

rest/changestest/changes_api_test.go:3790–3799  ·  view source on GitHub ↗
(dbc *db.DatabaseContext)

Source from the content-addressed store, hash-verified

3788}
3789
3790func waitForCompactStopped(dbc *db.DatabaseContext) error {
3791 for i := 0; i < 100; i++ {
3792 compactRunning := dbc.CacheCompactActive()
3793 if !compactRunning {
3794 return nil
3795 }
3796 time.Sleep(100 * time.Millisecond)
3797 }
3798 return errors.New("waitForCompactStopped didn't stop")
3799}

Callers 1

Calls 1

CacheCompactActiveMethod · 0.80

Tested by

no test coverage detected