Skip to content

Commit

Permalink
fix encoding of mvcc get by key (tikv#775)
Browse files Browse the repository at this point in the history
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
Signed-off-by: zzm <zhouzemin@pingcap.com>
  • Loading branch information
iosmanthus authored and zeminzhou committed Feb 28, 2024
1 parent ae5a5ec commit fb27e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/apicodec/codec_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (c *codecV2) EncodeRequest(req *tikvrpc.Request) (*tikvrpc.Request, error)
req.Req = &r
case tikvrpc.CmdMvccGetByKey:
r := *req.MvccGetByKey()
r.Key = c.EncodeRegionKey(r.Key)
r.Key = c.EncodeKey(r.Key)
req.Req = &r
case tikvrpc.CmdSplitRegion:
r := *req.SplitRegion()
Expand Down

0 comments on commit fb27e9b

Please sign in to comment.