rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR

Fixes: http://tracker.ceph.com/issues/36537

Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2018-10-19 12:54:44 -04:00
parent b1dca00f90
commit 077ceb17d9

View File

@ -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";