From: Roan Kattouw Date: Mon, 27 Sep 2010 15:51:47 +0000 (+0000) Subject: Revert r72816 and do it properly: the SELECT should be executed on the master X-Git-Tag: 1.31.0-rc.0~34783 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=b334000f357a8b6593960b923f6e80c280802d70;p=lhc%2Fweb%2Fwiklou.git Revert r72816 and do it properly: the SELECT should be executed on the master --- 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, ),