mirror of
https://github.com/ceph/ceph
synced 2025-05-06 09:38:33 +00:00
rgw/admin: 'bucket stats' displays non-empty mtime
Fixes: https://tracker.ceph.com/issues/58932 Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
20ab42758c
commit
e9720ddbe9
@ -870,7 +870,6 @@ static int bucket_stats(rgw::sal::Driver* driver,
|
|||||||
std::unique_ptr<rgw::sal::Bucket> bucket;
|
std::unique_ptr<rgw::sal::Bucket> bucket;
|
||||||
map<RGWObjCategory, RGWStorageStats> stats;
|
map<RGWObjCategory, RGWStorageStats> stats;
|
||||||
|
|
||||||
real_time mtime;
|
|
||||||
int ret = driver->get_bucket(dpp, nullptr, tenant_name, bucket_name, &bucket, null_yield);
|
int ret = driver->get_bucket(dpp, nullptr, tenant_name, bucket_name, &bucket, null_yield);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
@ -891,7 +890,7 @@ static int bucket_stats(rgw::sal::Driver* driver,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
utime_t ut(mtime);
|
utime_t ut(bucket->get_modification_time());
|
||||||
utime_t ctime_ut(bucket->get_creation_time());
|
utime_t ctime_ut(bucket->get_creation_time());
|
||||||
|
|
||||||
formatter->open_object_section("stats");
|
formatter->open_object_section("stats");
|
||||||
|
Loading…
Reference in New Issue
Block a user