]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd-mirror: avoid potential deadlock
authorMykola Golub <mgolub@mirantis.com>
Wed, 4 May 2016 12:25:04 +0000 (15:25 +0300)
committerMykola Golub <mgolub@mirantis.com>
Tue, 10 May 2016 05:55:13 +0000 (08:55 +0300)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/tools/rbd_mirror/ImageSync.cc

index f2f6784b84cdd62a06ff347e36c62106fde25ccd..66588d961a0e8449cde42824cf053e75729833c0 100644 (file)
@@ -166,8 +166,6 @@ void ImageSync<I>::send_copy_image() {
     return;
   }
 
-  update_progress("COPY_IMAGE");
-
   CephContext *cct = m_local_image_ctx->cct;
   ldout(cct, 20) << dendl;
 
@@ -179,6 +177,8 @@ void ImageSync<I>::send_copy_image() {
     ctx, m_progress_ctx);
   m_lock.Unlock();
 
+  update_progress("COPY_IMAGE");
+
   m_image_copy_request->send();
 }