]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: RGWDataSyncCR fails on errors from RGWListBucketIndexesCR 11330/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 16 Aug 2016 20:58:51 +0000 (16:58 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 5 Oct 2016 15:06:42 +0000 (11:06 -0400)
Fixes: http://tracker.ceph.com/issues/17073
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit e77a523f1d74768f4fef58c05cc167705d219036)

src/rgw/rgw_data_sync.cc

index bedfa06808fbc4a0d4a61644339774cd69579895..101ddb0bdf3529fb5095ac8fc99bfdcc2e909ca4 100644 (file)
@@ -1386,6 +1386,10 @@ public:
         /* state: building full sync maps */
         ldout(sync_env->cct, 20) << __func__ << "(): building full sync maps" << dendl;
         yield call(new RGWListBucketIndexesCR(sync_env, &sync_status));
+        if (retcode < 0) {
+          ldout(sync_env->cct, 0) << "ERROR: failed to build full sync maps, retcode=" << retcode << dendl;
+          return set_cr_error(retcode);
+        }
         sync_status.sync_info.state = rgw_data_sync_info::StateSync;
 
         /* update new state */