]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: clear output keys in RGWMetadataLister::get_next()
authorCasey Bodley <cbodley@redhat.com>
Mon, 9 Sep 2024 14:51:03 +0000 (10:51 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 12 Sep 2024 20:54:58 +0000 (16:54 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_metadata_lister.h

index 9fbb21ac3b402c9afca2d9206ebd7b8dbd8312c1..3d35fc7bfeddf7d75ef50d0628aa0175311ba7fa 100644 (file)
@@ -49,6 +49,7 @@ class RGWMetadataLister {
   int get_next(const DoutPrefixProvider* dpp, int max,
                std::list<std::string>& keys, bool* truncated)
   {
+    keys.clear();
     std::vector<std::string> oids;
     int r = listing.get_next(dpp, max, &oids, truncated);
     if (r == -ENOENT) {