jenkins-bot has submitted this change and it was merged.

Change subject: SearchUpdate should read from master.
......................................................................


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
---
M includes/search/SearchUpdate.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/search/SearchUpdate.php b/includes/search/SearchUpdate.php
index 2148210..82a413e 100644
--- a/includes/search/SearchUpdate.php
+++ b/includes/search/SearchUpdate.php
@@ -89,7 +89,7 @@
 
                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 ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/86704
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2b6673a9d2950cb9e88e9191e8d359aa5dd36d06
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to