From 077ceb17d9d86f394a2805c9be123b2533e77d40 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 19 Oct 2018 12:54:44 -0400 Subject: [PATCH] rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR Fixes: http://tracker.ceph.com/issues/36537 Signed-off-by: Casey Bodley --- src/rgw/rgw_data_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";