Skip to content

Commit

Permalink
add comment for setState instead of setError
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks committed Feb 5, 2025
1 parent c6e2757 commit 7a41b0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/active_replicator_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func (a *activeReplicatorCommon) reconnectLoop() {
a.replicationStats.NumReconnectsAborted.Add(1)
a.lock.Lock()
defer a.lock.Unlock()
// use setState to preserve last error from retry loop set by setLastError
a.setState(ReplicationStateError)
a._publishStatus()
a._stop()
Expand Down

0 comments on commit 7a41b0f

Please sign in to comment.