static int bucket_stats(rgw::sal::RGWRadosStore *store,
const std::string& tenant_name,
const std::string& bucket_name,
Formatter *formatter,
const DoutPrefixProvider *dpp)
{
RGWBucketInfo bucket_info;
map<RGWObjCategory, RGWStorageStats> stats;
map<string, bufferlist> attrs;
real_time mtime;
int r = store->getRados()->get_bucket_info(store->svc(),
tenant_name, bucket_name, bucket_info,
&mtime, null_yield, dpp, &attrs);
if (r < 0) {
return r;
}
rgw_bucket& bucket = bucket_info.bucket;
string bucket_ver, master_ver;
string max_marker;
int ret = store->getRados()->get_bucket_stats(dpp, bucket_info, RGW_NO_SHARD,
&bucket_ver, &master_ver, stats,
&max_marker);
if (ret < 0) {
cerr << "error getting bucket stats bucket=" << bucket.name << " ret=" <&l
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » Ceph入门到精通-Bucket Stats 源码分析
发表评论 取消回复