Skip to content

Commit

Permalink
fix txn get
Browse files Browse the repository at this point in the history
Signed-off-by: weedge <weege007@gmail.com>
  • Loading branch information
weedge committed Jun 20, 2023
1 parent f6f06b0 commit 75849a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txnkv/transaction/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (txn *KVTxn) GetVars() *tikv.Variables {
func (txn *KVTxn) Get(ctx context.Context, k []byte) ([]byte, error) {
ret, err := txn.us.Get(ctx, k)
if tikverr.IsErrNotFound(err) {
return nil, err
return nil, nil
}
if err != nil {
return nil, err
Expand Down

0 comments on commit 75849a8

Please sign in to comment.