From: cfanz Date: Thu, 21 Jun 2018 12:48:38 +0000 (+0800) Subject: rgw-multisite: fix endless loop in RGWBucketShardIncrementalSyncCR X-Git-Tag: v12.2.8~78^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a90d3c08edb1a943e389038e14f4f10522b7bc9c;p=ceph.git rgw-multisite: fix endless loop in RGWBucketShardIncrementalSyncCR Fixes: http://tracker.ceph.com/issues/24603 Signed-off-by: cfanz (cherry picked from commit 0633a9a00ebc6ea487f773af38ddd7a685e78dfc) --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 703bdd7ee25..439951e1a07 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -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";