From eb02e18728cd5c8fbc98fee1027cd922dbe71a9f Mon Sep 17 00:00:00 2001 From: mengxiangrui Date: Sat, 23 Sep 2023 10:06:15 +0800 Subject: [PATCH] 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) --- src/rgw/rgw_common.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 5868268c5e1..5c0dbac74aa 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -2723,8 +2723,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); } -- 2.39.5