Skip to content

Commit

Permalink
roachpb: fix RangeDescriptor generation counter printing
Browse files Browse the repository at this point in the history
The code was printing a `*int64` via `%d` which gives you the
address.

Release note: None
  • Loading branch information
tbg committed Aug 24, 2018
1 parent e171f06 commit a050d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/roachpb/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (r RangeDescriptor) String() string {
} else {
buf.WriteString("<no replicas>")
}
fmt.Fprintf(&buf, ", next=%d, gen=%d]", r.NextReplicaID, r.Generation)
fmt.Fprintf(&buf, ", next=%d, gen=%d]", r.NextReplicaID, r.GetGeneration())

return buf.String()
}
Expand Down

0 comments on commit a050d56

Please sign in to comment.