Skip to content

Commit

Permalink
Corrected update lock when require ack is received and the result is …
Browse files Browse the repository at this point in the history
…expired.
  • Loading branch information
snower committed May 19, 2024
1 parent 27dd704 commit a0f4f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ func (self *LockDB) DoAckLock(lock *Lock, succed bool) {
return
}

if !lock.expried {
if !lock.expried || lock.locked == 0 {
lock.ackCount = 0xff
var lockData []byte = nil
if lock.command.Flag&protocol.LOCK_FLAG_CONTAINS_DATA != 0 {
Expand Down

0 comments on commit a0f4f2c

Please sign in to comment.