]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: drop useless lines
authorBingyin Zhang <zhangbingyin@cloudin.cn>
Sun, 7 Jan 2018 01:33:48 +0000 (09:33 +0800)
committerBingyin Zhang <zhangbingyin@cloudin.cn>
Sun, 7 Jan 2018 01:33:48 +0000 (09:33 +0800)
* There is no 'break' statement in the for loop, so 'eiter' must be equal to 'ent_map.end()' in this place.

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
src/rgw/rgw_rados.cc

index f55b9a84f68cdf6f154ee7ba6f75e61f3f22e47c..c1b8bfad0a32423c0c7221a12fa90ffecac81919 100644 (file)
@@ -5697,10 +5697,6 @@ int RGWRados::Bucket::List::list_objects(int64_t max,
       result->emplace_back(std::move(entry));
       count++;
     }
-
-    // Either the back-end telling us truncated, or we don't consume all
-    // items returned per the amount caller request
-    truncated = (truncated || eiter != ent_map.end());
   }
 
 done: