From e0a05d23dc3ebce4e7af74589cd01cc81a1313e9 Mon Sep 17 00:00:00 2001 From: Bingyin Zhang Date: Sun, 7 Jan 2018 09:33:48 +0800 Subject: [PATCH] rgw: drop useless lines * 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 --- src/rgw/rgw_rados.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index f55b9a84f68..c1b8bfad0a3 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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: -- 2.39.5