Skip to content

Commit

Permalink
deprecate RawNode.TickQuiesced()
Browse files Browse the repository at this point in the history
`TickQuiesced()` was originally added for use with range quiescence in
CockroachDB, but hasn't been in use since 2018. This patch marks it as
deprecated, to be removed in a future release.

Signed-off-by: Erik Grinaker <grinaker@cockroachlabs.com>
  • Loading branch information
erikgrinaker committed May 31, 2023
1 parent 65a0bf3 commit d6c1d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rawnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func (rn *RawNode) Tick() {
//
// WARNING: Be very careful about using this method as it subverts the Raft
// state machine. You should probably be using Tick instead.
//
// DEPRECATED: This method will be removed in a future release.
func (rn *RawNode) TickQuiesced() {
rn.raft.electionElapsed++
}
Expand Down

0 comments on commit d6c1d64

Please sign in to comment.