E.g.,
[
{
"bucket": ":bucket1:
f2f4a8dd-7ec9-4758-bc4f-
c8f5fbc85109.4137.2",
"shard": "lc.6",
"started": "Fri, 18 Feb 2022 17:30:16 GMT",
"status": "COMPLETE"
},
...
]
The prototyped approach adds a copy of the shard name (which is
assured to be a small string) to rgw::sal::LCEntry. It's not
expected to be represented in underlying store types.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
for (const auto& entry : bucket_lc_map) {
formatter->open_object_section("bucket_lc_info");
formatter->dump_string("bucket", entry.bucket);
+ formatter->dump_string("shard", entry.oid);
char exp_buf[100];
time_t t{time_t(entry.start_time)};
if (std::strftime(
* buckets. */
struct LCEntry {
std::string bucket;
+ std::string oid;
uint64_t start_time{0};
uint32_t status{0};
LCEntry() = default;
LCEntry(std::string& _bucket, uint64_t _time, uint32_t _status) : bucket(_bucket), start_time(_time), status(_status) {}
+ LCEntry(std::string& _bucket, std::string _oid, uint64_t _time, uint32_t _status) : bucket(_bucket), oid(_oid), start_time(_time), status(_status) {}
};
Lifecycle() = default;
return ret;
for (auto& entry : cls_entries) {
- entries.push_back(LCEntry(entry.bucket, entry.start_time, entry.status));
+ entries.push_back(LCEntry(entry.bucket, oid, entry.start_time,
+ entry.status));
}
return ret;