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>
  • Loading branch information
iosmanthus authored and zeminzhou committed Feb 28, 2024
1 parent 48c3fde commit 3822d4c
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 3822d4c

Please sign in to comment.