Skip to content

Commit

Permalink
Merge pull request #14675 from cenkalti/release-3.4
Browse files Browse the repository at this point in the history
server: add more context to panic message
  • Loading branch information
ahrtr committed Nov 1, 2022
2 parents 7c1499d + 7a4a3ad commit c9cf4db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mvcc/kvstore_txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ func (tr *storeTxnRead) rangeKeys(key, end []byte, curRev int64, ro RangeOptions
"range failed to find revision pair",
zap.Int64("revision-main", revpair.main),
zap.Int64("revision-sub", revpair.sub),
zap.Int64("revision-current", curRev),
zap.Int64("range-option-rev", ro.Rev),
zap.Int64("range-option-limit", ro.Limit),
zap.Binary("key", key),
zap.Binary("end", end),
zap.Int("len-revpairs", len(revpairs)),
zap.Int("len-values", len(vs)),
)
} else {
plog.Fatalf("range cannot find rev (%d,%d)", revpair.main, revpair.sub)
Expand Down

0 comments on commit c9cf4db

Please sign in to comment.