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)
bucket_list_result() : max_keys(0), is_truncated(false) {}
+ void reset_entries() {
+ entries.clear();
+ is_truncated = false;
+ }
+
void decode_json(JSONObj *obj) {
JSONDecoder::decode_json("Name", name, obj);
JSONDecoder::decode_json("Prefix", prefix, obj);