setLastError updates the lastError field for the replicator without updating the replicator state.
(err error)
| 420 | |
| 421 | // setLastError updates the lastError field for the replicator without updating the replicator state. |
| 422 | func (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 |