]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix rgw rate limiting RGWRateLimitInfo class decode_json max_read_bytes and...
authormengxiangrui <mengxr@chinatelecom.cn>
Sat, 23 Sep 2023 02:06:15 +0000 (10:06 +0800)
committerCasey Bodley <cbodley@redhat.com>
Mon, 2 Oct 2023 20:14:41 +0000 (16:14 -0400)
Fixes: https://tracker.ceph.com/issues/62955
Signed-off-by: xiangrui meng <mengxr@chinatelecom.cn>
(cherry picked from commit f021b963025286650a2cf44c82cbd2e7e345463a)

src/rgw/rgw_common.cc

index 5868268c5e1b174a4e1b5a5349b581e0f7208ae1..5c0dbac74aa2f3a685349237823314db53589a03 100644 (file)
@@ -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);
 }