]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix rgw rate limiting RGWRateLimitInfo class decode_json max_read_bytes and... 53766/head
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:15:46 +0000 (16:15 -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 5c51edac9b4a8e10154eb667358b8c75d4380830..d6bed5565a02e239ad98bf0a35f5e1cd6e7c8353 100644 (file)
@@ -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);
 }