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 "Gruntfile.js: Remove obsolete eslint omissions"
[lhc/web/wiklou.git]
/
includes
/
Pingback.php
diff --git
a/includes/Pingback.php
b/includes/Pingback.php
index
0039d2b
..
bd1b2a2
100644
(file)
--- a/
includes/Pingback.php
+++ b/
includes/Pingback.php
@@
-72,7
+72,7
@@
class Pingback {
* @return bool
*/
private function checkIfSent() {
* @return bool
*/
private function checkIfSent() {
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$sent = $dbr->selectField(
'updatelog', '1', [ 'ul_key' => $this->key ], __METHOD__ );
return $sent !== false;
$sent = $dbr->selectField(
'updatelog', '1', [ 'ul_key' => $this->key ], __METHOD__ );
return $sent !== false;
@@
-168,7
+168,7
@@
class Pingback {
*/
private function getOrCreatePingbackId() {
if ( !$this->id ) {
*/
private function getOrCreatePingbackId() {
if ( !$this->id ) {
- $id = wfGetDB( DB_
SLAVE
)->selectField(
+ $id = wfGetDB( DB_
REPLICA
)->selectField(
'updatelog', 'ul_value', [ 'ul_key' => 'PingBack' ] );
if ( $id == false ) {
'updatelog', 'ul_value', [ 'ul_key' => 'PingBack' ] );
if ( $id == false ) {