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

Method _stop

db/active_replicator_common.go:403–408  ·  view source on GitHub ↗

_stop aborts any replicator processes that run outside of a running replication connection (e.g: async reconnect handling, statsreporter)

()

Source from the content-addressed store, hash-verified

401
402// _stop aborts any replicator processes that run outside of a running replication connection (e.g: async reconnect handling, statsreporter)
403func (arc *activeReplicatorCommon) _stop() {
404 if arc.ctxCancel != nil {
405 base.TracefCtx(arc.ctx, base.KeyReplicate, "cancelling context on activeReplicatorCommon in _stop()")
406 arc.ctxCancel()
407 }
408}
409
410type ReplicatorCompleteFunc func()
411

Callers 4

reconnectMethod · 0.95
stopAndDisconnectMethod · 0.95
CompleteMethod · 0.80
CompleteMethod · 0.80

Calls 1

TracefCtxFunction · 0.92

Tested by

no test coverage detected