summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-10-02 16:08:49 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-10-02 16:08:49 -0700
commit69180d5d6a87b5256576eb9ad31cb554ee3d2caf (patch)
tree82a0c39702abd2f442137aa55fc1f8c0e05251f5
parentebae077a6254f810c1999907a5f369575020c5e0 (diff)
downloadceph-69180d5d6a87b5256576eb9ad31cb554ee3d2caf.tar.gz
rgw: dump quota params even if disabled
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_json_enc.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc
index 596c31cf8b3..4d6b25374b9 100644
--- a/src/rgw/rgw_json_enc.cc
+++ b/src/rgw/rgw_json_enc.cc
@@ -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)