From: Casey Bodley Date: Fri, 19 Oct 2018 16:54:44 +0000 (-0400) Subject: rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR X-Git-Tag: v14.1.0~1093^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=077ceb17d9d86f394a2805c9be123b2533e77d40;p=ceph.git rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR Fixes: http://tracker.ceph.com/issues/36537 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 484cafdd5adba..1e200205ff46b 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -113,7 +113,7 @@ class RGWReadDataSyncRecoveringShardsCR : public RGWShardCollectCR { bool RGWReadDataSyncRecoveringShardsCR::spawn_next() { - if (shard_id > num_shards) + if (shard_id >= num_shards) return false; string error_oid = RGWDataSyncStatusManager::shard_obj_name(env->source_zone, shard_id) + ".retry";