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:
a9da9af
)
The "masterPos" field in refreshLinks can be false so check for that
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 20 Aug 2013 17:44:37 +0000
(10:44 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 20 Aug 2013 17:44:37 +0000
(10:44 -0700)
Change-Id: I445e10da122e5f24e589f1eb078a31605b9f2e13
includes/job/jobs/RefreshLinksJob.php
patch
|
blob
|
history
diff --git
a/includes/job/jobs/RefreshLinksJob.php
b/includes/job/jobs/RefreshLinksJob.php
index
563ce2f
..
474212b
100644
(file)
--- a/
includes/job/jobs/RefreshLinksJob.php
+++ b/
includes/job/jobs/RefreshLinksJob.php
@@
-48,7
+48,7
@@
class RefreshLinksJob extends Job {
# Wait for the DB of the current/next slave DB handle to catch up to the master.
# This way, we get the correct page_latest for templates or files that just changed
# milliseconds ago, having triggered this job to begin with.
- if (
isset
( $this->params['masterPos'] ) ) {
+ if (
!empty
( $this->params['masterPos'] ) ) {
wfGetLB()->waitFor( $this->params['masterPos'] );
}