]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/api: avoid retrieving more than max mirror image info records 39964/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 16 Dec 2020 15:15:28 +0000 (10:15 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Mar 2021 21:38:33 +0000 (16:38 -0500)
commit09c741e2a585aded03732e51fad47cff3bb99367
treeeb361e803a0e0ae1394178a3697897fdb056a351
parent1ff7d244fcbc15312e010f47e19e0e96c819755d
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>
(cherry picked from commit 77bc48bbadd8e8423e9342102475994632441eaa)

Conflicts:
src/librbd/api/Mirror.cc: conflict with new AsioEngine
src/librbd/api/Mirror.cc