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:
Casey Bodley 2023-03-07 17:49:44 -05:00
parent 20ab42758c
commit e9720ddbe9

View File

@ -870,7 +870,6 @@ static int bucket_stats(rgw::sal::Driver* driver,
std::unique_ptr<rgw::sal::Bucket> bucket;
map<RGWObjCategory, RGWStorageStats> stats;
real_time mtime;
int ret = driver->get_bucket(dpp, nullptr, tenant_name, bucket_name, &bucket, null_yield);
if (ret < 0) {
return ret;
@ -891,7 +890,7 @@ static int bucket_stats(rgw::sal::Driver* driver,
return ret;
}
utime_t ut(mtime);
utime_t ut(bucket->get_modification_time());
utime_t ctime_ut(bucket->get_creation_time());
formatter->open_object_section("stats");