Skip to content

Commit

Permalink
Merge #61445
Browse files Browse the repository at this point in the history
61445: kvserverpb: fix ClosedTimestamp comment r=andreimatei a=andreimatei

The comment on ClosedTimestamp.RaftCommand was claiming that lease
requests don't use that field. That's false - they do; they assign it to
the lease start. Lease extensions don't use it, but also don't do
anything special as it was indicated by the comment.

Release note: None
Release justification: Only comments

Co-authored-by: Andrei Matei <[email protected]>
  • Loading branch information
craig[bot] and andreimatei committed Mar 4, 2021
2 parents ad5662b + ef09c3d commit 2e04b55
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
35 changes: 17 additions & 18 deletions pkg/kv/kvserver/kvserverpb/proposer_kv.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pkg/kv/kvserver/kvserverpb/proposer_kv.proto
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,8 @@ message RaftCommand {
// used after this command is applied.
//
// The field can be zero, which is to be interpreted as no closed timestamp
// update. Some commands (lease requests) implicitly carry a closed timestamp
// in a command-specific way. If the value is not zero, the value is greater
// or equal to that of the previous commands (and all before it).
// update. If the value is not zero, the value is greater or equal to that of
// the previous commands (and all before it).
//
// This field is set through ClosedTimestampFooter hackery. Unlike in the
// ClosedTimestampFooter, the field is nullable here so that it does not get
Expand Down

0 comments on commit 2e04b55

Please sign in to comment.