jenkins-bot has submitted this change and it was merged. 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(-) Approvals: Nikerabbit: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: Iaeae257b7ebcfd901019c6c247284d29eef20bd4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Translate Gerrit-Branch: master Gerrit-Owner: Nemo bis <federicol...@tiscali.it> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Chad <ch...@wikimedia.org> Gerrit-Reviewer: Nemo bis <federicol...@tiscali.it> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits