From 411878214d2b728bcdbca86779d11d9480943d01 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 11 Jun 2021 00:58:37 -0700 Subject: [PATCH] objectcache: call silenceTransactionProfiler() in SqlBagOStuff::fetchBlobs() This avoids any warnings about DB_PRIMARY connections. Folllows-up 719bfa89774cc1e, which handled the writes, but we still emitted warnings about connections. Change-Id: I1f82af996ba179890d159e4ca307424b46ff6bfa --- includes/objectcache/SqlBagOStuff.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/objectcache/SqlBagOStuff.php b/includes/objectcache/SqlBagOStuff.php index 900e72731f9..85344bcb252 100644 --- a/includes/objectcache/SqlBagOStuff.php +++ b/includes/objectcache/SqlBagOStuff.php @@ -501,11 +501,13 @@ class SqlBagOStuff extends MediumSpecificBagOStuff { * @return array Order-preserved map of (key => (value,expiry,token) or null) */ private function fetchBlobs( array $keys, bool $getCasToken = false ) { + /** @noinspection PhpUnusedLocalVariableInspection */ + $silenceScope = $this->silenceTransactionProfiler(); + // Initialize order-preserved per-key results; set values for live keys below $dataByKey = array_fill_keys( $keys, null ); $readTime = (int)$this->getCurrentTime(); - $keysByTableByShard = []; foreach ( $keys as $key ) { list( $shardIndex, $partitionTable ) = $this->getKeyLocation( $key );