]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-multisite: fix endless loop in RGWBucketShardIncrementalSyncCR 22815/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:57:31 +0000 (12:57 +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 1833d5d42030a7a0f926f5432c9e8833f58e54e9..57c35da70ef742cc4dcd077d8481d4b4cb90caf0 100644 (file)
@@ -3029,6 +3029,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";