dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4189f5
)
Revert r72816 and do it properly: the SELECT should be executed on the master
author
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 27 Sep 2010 15:51:47 +0000
(15:51 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 27 Sep 2010 15:51:47 +0000
(15:51 +0000)
includes/MessageBlobStore.php
patch
|
blob
|
history
diff --git
a/includes/MessageBlobStore.php
b/includes/MessageBlobStore.php
index
da9ce1b
..
45a8b27
100644
(file)
--- 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,
),