Skip to content

Commit

Permalink
fix encoding of mvcc get by key (#775)
Browse files Browse the repository at this point in the history
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
  • Loading branch information
iosmanthus authored Apr 20, 2023
1 parent e1b0313 commit 6de096c
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 @@ -261,7 +261,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 6de096c

Please sign in to comment.