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>
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);