]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR
authorCasey Bodley <cbodley@redhat.com>
Fri, 19 Oct 2018 16:54:44 +0000 (12:54 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 19 Oct 2018 16:54:48 +0000 (12:54 -0400)
Fixes: http://tracker.ceph.com/issues/36537
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc

index 484cafdd5adbaa713e5e6e3dcf3b76b3f58f0de3..1e200205ff46b1565598d173cdaaecf49d7099e2 100644 (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";