Skip to content

Commit

Permalink
change back get not found key
Browse files Browse the repository at this point in the history
Signed-off-by: weedge <[email protected]>
  • Loading branch information
weedge committed Jun 20, 2023
1 parent 75849a8 commit 85c6599
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, nil
return nil, err
}
if err != nil {
return nil, err
Expand Down

0 comments on commit 85c6599

Please sign in to comment.