]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rbd: optimize rbd_list2
authorMykola Golub <mgolub@suse.com>
Fri, 7 Dec 2018 15:18:19 +0000 (17:18 +0200)
committerMykola Golub <mgolub@suse.com>
Fri, 7 Dec 2018 15:18:19 +0000 (17:18 +0200)
commitbc28c3af4dda4a255008cc1f53a4f2ce02e158ea
treedce37ef9a2861502517f5c7d67e12bdfa1bece7c
parentaf96e16271b620ab87570b1190585fffc06daeac
pybind/rbd: optimize rbd_list2

If rbd_list2 returns ERANGE, it sets num_images to the value required.
But it is better to retry with a bigger number, to avoid new retries
if images are added to the pool at that time.

Also the initial value for num_images looks too small.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/rbd/rbd.pyx