]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW/multisite: bucket_list_result object provides a method to reset its entries
authorOguzhan Ozmen <oozmen@bloomberg.net>
Tue, 11 Nov 2025 16:14:41 +0000 (16:14 +0000)
committerShilpa Jagannath <smanjara@redhat.com>
Wed, 19 Nov 2025 17:57:49 +0000 (12:57 -0500)
commit93c42e37a7fb2a2297acbb8efe08e8f71dbd186b
tree55f4c50e804f5a5676540314157b580f7f42a9ee
parent6573ce3a7d79ec8fff5abcbb5f0032c154978894
RGW/multisite: bucket_list_result object provides a method to reset its entries

Add a new method `reset_entries()` to the `bucket_list_result` struct
that clears the list of entries and resets the truncated flag.

This would be used to enhance the re-use cases to avoid accessing stale
entries or truncated flag.

Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
(cherry picked from commit 911d0cb2bce2a613657a6aebcb9724cabc23d6eb)
resolves rhbz#2412220
(cherry picked from commit ac270428b90cc411074467db4c5f0dfd2e9e1e59)
src/rgw/driver/rados/rgw_data_sync.cc