mirror of
https://github.com/ceph/ceph
synced 2024-12-27 22:13:28 +00:00
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:
parent
b1dca00f90
commit
077ceb17d9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user