]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: dump quota params even if disabled
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 2 Oct 2013 23:08:49 +0000 (16:08 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 2 Oct 2013 23:08:49 +0000 (16:08 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_json_enc.cc

index 596c31cf8b310bb1735007c6c2892e57b92b573c..4d6b25374b9a002e0f4526aa5ef6fd5ea0a62418 100644 (file)
@@ -453,10 +453,8 @@ void RGWUserInfo::decode_json(JSONObj *obj)
 void RGWQuotaInfo::dump(Formatter *f) const
 {
   f->dump_bool("enabled", enabled);
-  if (enabled) {
-    f->dump_int("max_size_kb", max_size_kb);
-    f->dump_int("max_objects", max_objects);
-  }
+  f->dump_int("max_size_kb", max_size_kb);
+  f->dump_int("max_objects", max_objects);
 }
 
 void RGWQuotaInfo::decode_json(JSONObj *obj)