Skip to content

Commit

Permalink
rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/36537

Signed-off-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley committed Oct 19, 2018
1 parent b1dca00 commit 077ceb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_data_sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 077ceb1

Please sign in to comment.