Skip to content

Commit

Permalink
storage: Include command timestamps in command queue debug string
Browse files Browse the repository at this point in the history
Would have been nice when looking into cockroachdb#20114
  • Loading branch information
a-robinson committed Dec 3, 2017
1 parent 602df28 commit 5162005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/command_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (c *cmd) String() string {
if c.readOnly {
readOnly = " readonly"
}
fmt.Fprintf(&buf, "%d%s [%s", c.id, readOnly, roachpb.Key(c.key.Start))
fmt.Fprintf(&buf, "%d %v%s [%s", c.id, c.timestamp, readOnly, roachpb.Key(c.key.Start))
if !roachpb.Key(c.key.End).Equal(roachpb.Key(c.key.Start).Next()) {
fmt.Fprintf(&buf, ",%s", roachpb.Key(c.key.End))
}
Expand Down

0 comments on commit 5162005

Please sign in to comment.