]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: update last_added_entry when count == num_entries
authorPeng Zhang <zhangpeng@vclusters.com>
Fri, 2 Jul 2021 06:13:50 +0000 (14:13 +0800)
committerPeng Zhang <zhangpeng@vclusters.com>
Fri, 2 Jul 2021 06:13:50 +0000 (14:13 +0800)
RGWRados::cls_bucket_list_unordered() will produce one redundent entry
every time is_truncated is true.The issue could be easily reproduced
when a bucket is filled with amounts of incomplete multipart upload.
To be more specific, the number of incomplete multipart upload objects
should be greater than 1100.

Signed-off-by: Peng Zhang <zhangpeng@vclusters.com>
src/rgw/rgw_rados.cc

index b62e3a8a6098f024b8e8c7ee802573dd238a88eb..6ea6b025d3c86af53efbc537a612f1bf553c11a2 100644 (file)
@@ -8780,6 +8780,7 @@ int RGWRados::cls_bucket_list_unordered(const DoutPrefixProvider *dpp,
          ent_list.emplace_back(std::move(dirent));
          ++count;
        } else {
+         last_added_entry = dirent.key;
          *is_truncated = true;
          goto check_updates;
        }