X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FMessageCache.php;h=e871855a32b617f082c9e31e11d88b8d69b60bde;hb=30f4b3c103997bd9154b247cda8282eb8bd0ba66;hp=62fab5fc50b6da8d56281067261e9a0d25eaed62;hpb=432e10528feab333002f7c7c37f9582a197d8b66;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index 62fab5fc50..e871855a32 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -302,7 +302,7 @@ class MessageCache { $where[] = 'global cache is expired'; $staleCache = $cache; } elseif ( $hashVolatile ) { - # DB results are slave lag prone until the holdoff TTL passes. + # DB results are replica DB lag prone until the holdoff TTL passes. # By then, updates should be reflected in loadFromDBWithLock(). # One thread renerates the cache while others use old values. $where[] = 'global cache is expired/volatile'; @@ -442,7 +442,7 @@ class MessageCache { function loadFromDB( $code, $mode = null ) { global $wgMaxMsgCacheEntrySize, $wgLanguageCode, $wgAdaptiveMessageCache; - $dbr = wfGetDB( ( $mode == self::FOR_UPDATE ) ? DB_MASTER : DB_SLAVE ); + $dbr = wfGetDB( ( $mode == self::FOR_UPDATE ) ? DB_MASTER : DB_REPLICA ); $cache = []; @@ -564,7 +564,7 @@ class MessageCache { } // Mark this cache as definitely "latest" (non-volatile) so - // load() calls do try to refresh the cache with slave data + // load() calls do try to refresh the cache with replica DB data $this->mCache[$code]['LATEST'] = time(); // Update caches if the lock was acquired @@ -1089,7 +1089,7 @@ class MessageCache { if ( !$title || !$title instanceof Title ) { global $wgTitle; wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . - wfGetAllCallers( 5 ) . ' with no title set.' ); + wfGetAllCallers( 6 ) . ' with no title set.' ); $title = $wgTitle; } // Sometimes $wgTitle isn't set either...