]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/api: avoid retrieving more than max mirror image info records 38613/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 16 Dec 2020 15:15:28 +0000 (10:15 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 17 Dec 2020 13:57:46 +0000 (08:57 -0500)
commit77bc48bbadd8e8423e9342102475994632441eaa
treeae748a3e8037bf5e6ee54ab2a74bbf0d55bb2c58
parente8ec1848ec9a05f074e2567c3c191a02ee36111c
librbd/api: avoid retrieving more than max mirror image info records

This could otherwise result in an assertion failure in the API if
it failed to retrieve the status on an image and therefore required
a second iteration through the loop.

Fixes: https://tracker.ceph.com/issues/48522
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Mirror.cc