Revert r72816 and do it properly: the SELECT should be executed on the master
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 27 Sep 2010 15:51:47 +0000 (15:51 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 27 Sep 2010 15:51:47 +0000 (15:51 +0000)
includes/MessageBlobStore.php

index da9ce1b..45a8b27 100644 (file)
@@ -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,
                                        ),