From: Nik Everett Date: Mon, 30 Sep 2013 18:30:31 +0000 (+0000) Subject: SearchUpdate should read from master. X-Git-Tag: 1.31.0-rc.0~18636^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=b07912c5c360a3e11d1733d244d9d952063310ea;p=lhc%2Fweb%2Fwiklou.git SearchUpdate should read from master. This should prevent slave lag from being interpreted as a page delete from the perspective of search. Bug: 54652 Change-Id: I2b6673a9d2950cb9e88e9191e8d359aa5dd36d06 --- diff --git a/includes/search/SearchUpdate.php b/includes/search/SearchUpdate.php index 214821015a..82a413e920 100644 --- a/includes/search/SearchUpdate.php +++ b/includes/search/SearchUpdate.php @@ -89,7 +89,7 @@ class SearchUpdate implements DeferrableUpdate { wfProfileIn( __METHOD__ ); - $page = WikiPage::newFromId( $this->id ); + $page = WikiPage::newFromId( $this->id, WikiPage::READ_LATEST ); $indexTitle = Title::indexTitle( $this->title->getNamespace(), $this->title->getText() ); foreach ( SearchEngine::getSearchTypes() as $type ) {