We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a2988 commit 55ff106Copy full SHA for 55ff106
kv/fsm.go
@@ -209,13 +209,8 @@ func (f *kvFSM) handleCommitRequest(ctx context.Context, r *pb.Request) error {
209
}
210
211
if !ok {
212
- // Lock missing (e.g., expired). Try to reacquire to make progress.
213
- err := f.lockStore.TxnWithTTL(ctx, func(ctx context.Context, ttlTxn store.TTLTxn) error {
214
- return f.lock(ttlTxn, mut.Key, r.Ts)
215
- })
216
- if err != nil {
217
- return errors.WithStack(err)
218
- }
+ // Lock already gone: treat as conflict and abort.
+ return errors.WithStack(ErrKeyNotLocked)
219
220
221
err = f.commit(ctx, txn, mut)
0 commit comments