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: v19.0.0~368^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f021b963025286650a2cf44c82cbd2e7e345463a;p=ceph-ci.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 --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 4a11e11d2eb..14ab5480762 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -2742,8 +2742,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); }