Skip to content

Commit

Permalink
update the comment of ChangeLockIntoPut
Browse files Browse the repository at this point in the history
Signed-off-by: zyguan <[email protected]>
  • Loading branch information
zyguan committed Mar 28, 2023
1 parent bea40d6 commit e33891f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion session/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ func (txn *LazyTxn) LockKeys(ctx context.Context, lockCtx *kv.LockCtx, keys ...k
return err
}

// ChangeLockIntoPut try to cache a locked key-value pair that might be converted to PUT on commit.
// ChangeLockIntoPut tries to cache a locked key-value pair that might be converted to PUT on commit, returns true if
// the key-value pair has been cached.
func (txn *LazyTxn) ChangeLockIntoPut(ctx context.Context, key kv.Key, value []byte) bool {
if len(value) == 0 {
return false
Expand Down

0 comments on commit e33891f

Please sign in to comment.