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

Function waitForPersistence

dgm_test.go:162–170  ·  view source on GitHub ↗
(coll Collection)

Source from the content-addressed store, hash-verified

160var dbpath = flag.String("dbpath", "", "path to moss store directory")
161
162func waitForPersistence(coll Collection) {
163 for {
164 stats, er := coll.Stats()
165 if er == nil && stats.CurDirtyOps <= 0 {
166 break
167 }
168 time.Sleep(1 * time.Millisecond)
169 }
170}
171
172func Test_DGMLoad(t *testing.T) {
173 numItems := 400000

Callers 7

closeMossStoreMethod · 0.85
TestStoreLargeDeletionsFunction · 0.85
Test_DGMLoadFunction · 0.85
Test_LevelCompactDeletesFunction · 0.85

Calls 1

StatsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…