]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: FAILED assert(!m_status_watcher) 9690/head
authorMykola Golub <mgolub@mirantis.com>
Sun, 12 Jun 2016 17:32:45 +0000 (20:32 +0300)
committerJason Dillaman <dillaman@redhat.com>
Tue, 14 Jun 2016 10:55:03 +0000 (06:55 -0400)
Fixes: http://tracker.ceph.com/issues/16245
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit b8bfc0f2efb44d3eff7a5fd8bca24516c8815d62)

src/tools/rbd_mirror/Replayer.cc

index 58c25d8b35e0b5224a679536233fbbf03a8a9cb7..07b79915ec2cba3298a7e31196882ca3f6725c03 100644 (file)
@@ -599,7 +599,7 @@ void Replayer::set_sources(const ImageIds &image_ids)
     return;
   }
 
-  if (m_image_replayers.empty()) {
+  if (m_image_replayers.empty() && !existing_image_replayers) {
     // create entry for pool if it doesn't exist
     r = mirror_image_status_init();
     if (r < 0) {