Skip to content

Commit

Permalink
Merge pull request ceph#24680 from cbodley/wip-36537
Browse files Browse the repository at this point in the history
rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR

Reviewed-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
cbodley authored Oct 25, 2018
2 parents 471508b + 077ceb1 commit 65316c3
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 65316c3

Please sign in to comment.