]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: ignore unexpected state when mirror image flagged as creating
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 01:12:38 +0000 (20:12 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 21:33:21 +0000 (16:33 -0500)
commit5466e6820197c910859f9982f5d26d9a91f6c7d7
tree8df72211d0472f1e5216713a16cfbbecc14aca9f
parent91fe3c134438abc82d8b7b4651ef423fe75aba07
librbd: ignore unexpected state when mirror image flagged as creating

When retrieving the mirror info we should just flag the promotion state as
unknown if we are in the creating state and the image doesn't exist. When
enabling mirroring, ignore the fact that a mirror image record will already
exist.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/EnableRequest.cc
src/librbd/mirror/GetInfoRequest.cc