From 5162005f3073b2b959757326115dca163eeb5e54 Mon Sep 17 00:00:00 2001 From: Alex Robinson Date: Sun, 3 Dec 2017 13:08:46 -0500 Subject: [PATCH] storage: Include command timestamps in command queue debug string Would have been nice when looking into #20114 --- pkg/storage/command_queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/command_queue.go b/pkg/storage/command_queue.go index bb781c3c61dc..b24215964cb7 100644 --- a/pkg/storage/command_queue.go +++ b/pkg/storage/command_queue.go @@ -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)) }