Nemo bis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173062

Change subject: Use DB_MASTER in loadFromDatabase()/getSectionsForSave()
......................................................................

Use DB_MASTER in loadFromDatabase()/getSectionsForSave()

The sections are then sent via checkInput() to markForTranslation()
which will propagate them in various tables, jobs and caches.
It seems much better to be sure that they're actually what we're
looking for, i.e. the latest version.

Change-Id: Iaeae257b7ebcfd901019c6c247284d29eef20bd4
---
M tag/TPParse.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/62/173062/1

diff --git a/tag/TPParse.php b/tag/TPParse.php
index ebe9378..cee3d53 100644
--- a/tag/TPParse.php
+++ b/tag/TPParse.php
@@ -133,7 +133,7 @@
 
                $this->dbSections = array();
 
-               $db = wfGetDB( DB_SLAVE );
+               $db = wfGetDB( DB_MASTER );
                $tables = 'translate_sections';
                $vars = array( 'trs_key', 'trs_text' );
                $conds = array( 'trs_page' => $this->title->getArticleID() );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaeae257b7ebcfd901019c6c247284d29eef20bd4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to