From 68fd755f9eb4d811951ababcdea0e01475f606a8 Mon Sep 17 00:00:00 2001 From: cfanz Date: Thu, 21 Jun 2018 20:48:38 +0800 Subject: [PATCH] rgw-multisite: fix endless loop in RGWBucketShardIncrementalSyncCR Fixes: http://tracker.ceph.com/issues/24603 Signed-off-by: cfanz (cherry picked from commit 0633a9a00ebc6ea487f773af38ddd7a685e78dfc) --- src/rgw/rgw_data_sync.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 1833d5d42030..57c35da70ef7 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -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"; -- 2.47.3