mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
cephfs: correct the id for cephfs locks
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 <robin.nyman@est.tech>
This commit is contained in:
parent
0a3ec18c30
commit
da6279b59d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user