From b334000f357a8b6593960b923f6e80c280802d70 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 27 Sep 2010 15:51:47 +0000 Subject: [PATCH] Revert r72816 and do it properly: the SELECT should be executed on the master --- includes/MessageBlobStore.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/MessageBlobStore.php b/includes/MessageBlobStore.php index da9ce1b9db..45a8b27f39 100644 --- a/includes/MessageBlobStore.php +++ b/includes/MessageBlobStore.php @@ -87,8 +87,7 @@ class MessageBlobStore { if ( $success ) { if ( $dbw->affectedRows() == 0 ) { // Blob was already present, fetch it - $dbr = wfGetDB( DB_SLAVE ); - $blob = $dbr->selectField( 'msg_resource', 'mr_blob', array( + $blob = $dbw->selectField( 'msg_resource', 'mr_blob', array( 'mr_resource' => $module, 'mr_lang' => $lang, ), -- 2.20.1