Skip to content

Commit

Permalink
Merge #40685
Browse files Browse the repository at this point in the history
40685: roachpb: include sticky bit in RangeDescriptor.String output r=nvanbenschoten a=nvanbenschoten

Release note: None

Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
  • Loading branch information
craig[bot] and nvanbenschoten committed Sep 11, 2019
2 parents b531642 + 10340b8 commit 751476c
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 751476c

Please sign in to comment.