]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-multisite: fix endless loop in RGWBucketShardIncrementalSyncCR 22817/head
authorcfanz <songxinying@sensetime.com>
Thu, 21 Jun 2018 12:48:38 +0000 (20:48 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 3 Jul 2018 10:58:43 +0000 (12:58 +0200)
Fixes: http://tracker.ceph.com/issues/24603
Signed-off-by: cfanz <songxinying@sensetime.com>
(cherry picked from commit 0633a9a00ebc6ea487f773af38ddd7a685e78dfc)

src/rgw/rgw_data_sync.cc

index 703bdd7ee25e9cc0d700dd374595956f13a43ea9..439951e1a076b123769a56dded3630ac23e403b7 100644 (file)
@@ -2869,6 +2869,12 @@ int RGWBucketShardIncrementalSyncCR::operate()
               /* we have reported this error */
             }
           }
+          if (sync_status != 0)
+            break;
+        }
+        if (sync_status != 0) {
+          /* get error, stop */
+          break;
         }
         if (!marker_tracker.index_key_to_marker(key, cur_id)) {
           set_status() << "can't do op, sync already in progress for object";