Skip to content

Commit

Permalink
roachpb: include sticky bit in RangeDescriptor.String output
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
nvanbenschoten committed Sep 11, 2019
1 parent 4146821 commit 10340b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/roachpb/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ func (r *RangeDescriptor) String() string {
if !r.GetGenerationComparable() {
buf.WriteString("?")
}
if s := r.GetStickyBit(); !s.IsEmpty() {
fmt.Fprintf(&buf, ", sticky=%s", s)
}
buf.WriteString("]")

return buf.String()
Expand Down

0 comments on commit 10340b8

Please sign in to comment.