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>
(cherry picked from commit
7511f9f675ea4e43992605dc03109bc5f356a5e1)
ent_list.emplace_back(std::move(dirent));
++count;
} else {
+ last_added_entry = dirent.key;
*is_truncated = true;
goto check_updates;
}