]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
cls_lock: check expired lock before unlock
authorNitzanMordhai <nmordech@redhat.com>
Mon, 4 Apr 2022 10:10:27 +0000 (10:10 +0000)
committerNitzanMordhai <nmordech@redhat.com>
Wed, 13 Apr 2022 04:20:23 +0000 (04:20 +0000)
commitcf9054d933f2b3068b6367cb0d4ea8a5a975e3fa
treeec5b59aca31fb38909d309effb8d9a00ab98f47b
parent76012069455b26f6529bf3a651f44a325dec97b1
cls_lock: check expired lock before unlock

Check if the lock was expired, if it is, unlock will return -ENOENT and not 0
that will cause the assert to error.

Fixes: https://tracker.ceph.com/issues/38357
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
src/test/cls_lock/test_cls_lock.cc