Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jun 24, 2024
1 parent 8585ccb commit 188aa0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/vt/vttablet/tabletserver/txthrottler/tx_throttler.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,16 @@ func (t *txThrottler) Close() {
log.Info("txThrottler: closed")
}

// MakePrimary performs a transition to a primary tablet. This will enable healthchecks to
// enable live replication lag state.
func (t *txThrottler) MakePrimary() {
if t.state != nil {
t.state.makePrimary()
}
}

// MakePrimary performs a transition to a non-primary tablet. This disables healthchecks
// (for replication state) if they exist.
func (t *txThrottler) MakeNonPrimary() {
if t.state != nil {
t.state.makeNonPrimary()
Expand Down

0 comments on commit 188aa0d

Please sign in to comment.