]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bucket stats also dump quota info
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 2 Oct 2013 22:35:43 +0000 (15:35 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 2 Oct 2013 22:35:43 +0000 (15:35 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_bucket.cc

index 5356417f09ab53e754c9e019788ad9f2112953a0..3267bc519481c06e78cfcd74f558291b7db87bd2 100644 (file)
@@ -901,6 +901,7 @@ static int bucket_stats(RGWRados *store, std::string&  bucket_name, Formatter *f
   formatter->dump_int("mtime", mtime);
   formatter->dump_string("max_marker", max_marker);
   dump_bucket_usage(stats, formatter);
+  encode_json("bucket_quota", bucket_info.quota, formatter);
   formatter->close_section();
 
   return 0;