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

Method Cancel

rest/database_init_manager.go:174–182  ·  view source on GitHub ↗
(dbName string, reason string)

Source from the content-addressed store, hash-verified

172}
173
174func (m *DatabaseInitManager) Cancel(dbName string, reason string) {
175 m.workersLock.Lock()
176 defer m.workersLock.Unlock()
177 worker, ok := m.workers[dbName]
178 if !ok {
179 return
180 }
181 worker.Stop(reason)
182}
183
184// buildCollectionIndexData determines the set of indexes required for each collection in the config, including
185// the metadata collection

Callers 4

openStreamRequestMethod · 0.80
handlePostIndexInitMethod · 0.80
RemoveDatabaseMethod · 0.80

Calls 3

StopMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected