From: mengxiangrui Date: Sat, 23 Sep 2023 02:06:15 +0000 (+0800) Subject: rgw: fix rgw rate limiting RGWRateLimitInfo class decode_json max_read_bytes and... X-Git-Tag: v17.2.7~33^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4acb8defa456da682be6e3e11f364b9650d1296f;p=ceph.git rgw: fix rgw rate limiting RGWRateLimitInfo class decode_json max_read_bytes and max_write_bytes field mismatch Fixes: https://tracker.ceph.com/issues/62955 Signed-off-by: xiangrui meng (cherry picked from commit f021b963025286650a2cf44c82cbd2e7e345463a) --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 5c51edac9b4..d6bed5565a0 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -2689,8 +2689,8 @@ void RGWRateLimitInfo::decode_json(JSONObj *obj) { JSONDecoder::decode_json("max_read_ops", max_read_ops, obj); JSONDecoder::decode_json("max_write_ops", max_write_ops, obj); - JSONDecoder::decode_json("max_read_bytes", max_read_ops, obj); - JSONDecoder::decode_json("max_write_bytes", max_write_ops, obj); + JSONDecoder::decode_json("max_read_bytes", max_read_bytes, obj); + JSONDecoder::decode_json("max_write_bytes", max_write_bytes, obj); JSONDecoder::decode_json("enabled", enabled, obj); }