dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add CollationFa"
[lhc/web/wiklou.git]
/
includes
/
HistoryBlob.php
diff --git
a/includes/HistoryBlob.php
b/includes/HistoryBlob.php
index
8673125
..
b17a2f5
100644
(file)
--- a/
includes/HistoryBlob.php
+++ b/
includes/HistoryBlob.php
@@
-245,7
+245,7
@@
class HistoryBlobStub {
if ( isset( self::$blobCache[$this->mOldId] ) ) {
$obj = self::$blobCache[$this->mOldId];
} else {
if ( isset( self::$blobCache[$this->mOldId] ) ) {
$obj = self::$blobCache[$this->mOldId];
} else {
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$row = $dbr->selectRow(
'text',
[ 'old_flags', 'old_text' ],
$row = $dbr->selectRow(
'text',
[ 'old_flags', 'old_text' ],
@@
-336,7
+336,7
@@
class HistoryBlobCurStub {
* @return string|bool
*/
function getText() {
* @return string|bool
*/
function getText() {
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$row = $dbr->selectRow( 'cur', [ 'cur_text' ], [ 'cur_id' => $this->mCurId ] );
if ( !$row ) {
return false;
$row = $dbr->selectRow( 'cur', [ 'cur_text' ], [ 'cur_id' => $this->mCurId ] );
if ( !$row ) {
return false;