]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: clean-up special casing for enabling mirroring on creating image
authorJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2020 13:36:23 +0000 (08:36 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2020 15:53:44 +0000 (10:53 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/EnableRequest.cc

index 5071763a5c7e9642d975e258306fd33b52e48b4b..beee05ac4e8443f4f5fc391ecdec2ce5a3c58688 100644 (file)
@@ -69,7 +69,8 @@ void EnableRequest<I>::handle_get_mirror_image(int r) {
       !m_non_primary_global_image_id.empty()) {
     // special case where rbd-mirror injects a disabled record to record the
     // local image id prior to creating ther image
-    r = -ENOENT;
+    ldout(m_cct, 10) << "enabling mirroring on in-progress image replication"
+                     << dendl;
   } else if (r == 0) {
     if (m_mirror_image.mode != m_mode) {
       lderr(m_cct) << "invalid current image mirror mode" << dendl;