diff options
author | Hannah Okwelum <hokwelum@wikimedia.org> | 2025-04-03 15:43:02 +0100 |
---|---|---|
committer | Krinkle <krinkle@fastmail.com> | 2025-04-04 00:13:56 +0000 |
commit | 66760507fe1dee3d79e32b79ca8fcd2695136976 (patch) | |
tree | 5ede1b69f86bdd96674fe6b3fdc15a3f7527f2a6 /includes | |
parent | c79f8fd33bac5ae8d29d07a2db6228f38161dae3 (diff) | |
download | mediawikicore-66760507fe1dee3d79e32b79ca8fcd2695136976.tar.gz mediawikicore-66760507fe1dee3d79e32b79ca8fcd2695136976.zip |
objectcache: Fix RestBagOStuff bytes sent stats
The current total bytes sent is computed on the response body recieved from the server. What we want is to compute this on the actual request body being sent to the server.
Bug: T390815
Change-Id: I7d48a5e08f112329ebc4743a1cbd98d0f7144a69
Diffstat (limited to 'includes')
-rw-r--r-- | includes/libs/objectcache/RESTBagOStuff.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/libs/objectcache/RESTBagOStuff.php b/includes/libs/objectcache/RESTBagOStuff.php index b2600b908c86..dcc7bd96a2f9 100644 --- a/includes/libs/objectcache/RESTBagOStuff.php +++ b/includes/libs/objectcache/RESTBagOStuff.php @@ -226,7 +226,7 @@ class RESTBagOStuff extends MediumSpecificBagOStuff { [ 'cacheKey' => $key ] ); } - $this->updateOpStats( self::METRIC_OP_SET, [ $key => [ strlen( $rbody ), 0 ] ] ); + $this->updateOpStats( self::METRIC_OP_SET, [ $key => [ strlen( $req['body'] ), 0 ] ] ); return $res; } |