Skip to content

Commit

Permalink
cephfs: correct the id for cephfs locks
Browse files Browse the repository at this point in the history
There was a discrepancy between the objectId
when creating the lock and when releasing the lock
this caused every lock to hang.

Signed-off-by: NymanRobin <[email protected]>
  • Loading branch information
NymanRobin authored and mergify[bot] committed Jul 25, 2024
1 parent 0a3ec18 commit da6279b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cephfs/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func maybeUnlockFileEncryption(
}
defer ioctx.Destroy()

res, err := ioctx.LockExclusive(volOptions.VolID, lockName, lockCookie, lockDesc, lockDuration, &flags)
res, err := ioctx.LockExclusive(string(volID), lockName, lockCookie, lockDesc, lockDuration, &flags)
if res != 0 {
switch res {
case -int(syscall.EBUSY):
Expand Down

0 comments on commit da6279b

Please sign in to comment.