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

Method setLastError

db/active_replicator_common.go:422–426  ·  view source on GitHub ↗

setLastError updates the lastError field for the replicator without updating the replicator state.

(err error)

Source from the content-addressed store, hash-verified

420
421// setLastError updates the lastError field for the replicator without updating the replicator state.
422func (arc *activeReplicatorCommon) setLastError(err error) {
423 arc.stateErrorLock.Lock()
424 arc.lastError = err
425 arc.stateErrorLock.Unlock()
426}
427
428// setState updates replicator state and resets lastError to nil. Expects callers
429// to be holding activeReplicatorCommon.lock

Callers 1

reconnectMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected