From: Yehuda Sadeh Date: Tue, 26 Apr 2016 22:59:33 +0000 (-0700) Subject: rgw: collect children after waiting for them X-Git-Tag: v11.0.0~615^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=806fb85d18653910863ba6b8cb56b8db1a0fa3d2;p=ceph.git rgw: collect children after waiting for them Otherwise we're going to busy loop there. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 71db08edeb44..e65f37663f16 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -2305,7 +2305,12 @@ int RGWBucketShardIncrementalSyncCR::operate() } ldout(sync_env->cct, 5) << *this << ": [inc sync] can't do op on key=" << key << " need to wait for conflicting operation to complete" << dendl; yield wait_for_child(); - + while (collect(&ret)) { + if (ret < 0) { + ldout(sync_env->cct, 0) << "ERROR: a child operation returned error (ret=" << ret << ")" << dendl; + /* we have reported this error */ + } + } } if (!marker_tracker->index_key_to_marker(key, entry->op, cur_id)) { set_status() << "can't do op, sync already in progress for object";