mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14667 from cenkalti/range-panic
server: add more context to panic message
This commit is contained in:
commit
06ff2c905f
@ -105,6 +105,13 @@ func (tr *storeTxnRead) rangeKeys(ctx context.Context, key, end []byte, curRev i
|
||||
"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)),
|
||||
)
|
||||
}
|
||||
if err := kvs[i].Unmarshal(vs[0]); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user