Merge "objectcache: call silenceTransactionProfiler() in SqlBagOStuff::fetchBlobs()"

This commit is contained in:
jenkins-bot 2021-08-28 23:16:06 +00:00 committed by Gerrit Code Review
commit 5f83cbffa4

View file

@ -507,11 +507,13 @@ class SqlBagOStuff extends MediumSpecificBagOStuff {
* @return array<string,array|null> 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 );