]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/rbd: fix no lockers are obtained, ImageNotFound exception will be output 34387/head
authorzhangdaolong <root@localhost.localdomain>
Tue, 24 Mar 2020 00:51:44 +0000 (08:51 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 3 Apr 2020 03:23:35 +0000 (05:23 +0200)
commit6007a0f824f43eff6be1513645e489fe805f6fcf
treed0ec48148d34526d24429e1d6073a0298a9efa3b
parenta0b560db23231563848b0fbc0b84223d45783263
pybind/rbd: fix no lockers are obtained, ImageNotFound exception will be output

No lockers are obtained, ImageNotFound exception will be output,
but tht image is always exist.when lockers number is zero,
Should not output any exceptions。

Fixes: https://tracker.ceph.com/issues/44613
Signed-off-by: zhangdaolong <zhangdaolong@fiberhome.com>
(cherry picked from commit a183aac978dac69f996250324975073a78cb476b)
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py