]> 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)
committermengxiangrui <mengxr@chinatelecom.cn>
Fri, 29 Sep 2023 12:02:49 +0000 (20:02 +0800)
Fixes: https://tracker.ceph.com/issues/62955
Signed-off-by: xiangrui meng <mengxr@chinatelecom.cn>
src/rgw/rgw_common.cc

index 4a11e11d2eb466a81f2aa1dfae14f176c475b0fd..14ab5480762e74d6549af14a6c8d785f26d052ee 100644 (file)
@@ -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);
 }