Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/80064
Change subject: The "masterPos" field in refreshLinks can be false so check for
that
......................................................................
The "masterPos" field in refreshLinks can be false so check for that
Change-Id: I445e10da122e5f24e589f1eb078a31605b9f2e13
---
M includes/job/jobs/RefreshLinksJob.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/64/80064/1
diff --git a/includes/job/jobs/RefreshLinksJob.php
b/includes/job/jobs/RefreshLinksJob.php
index 563ce2f..474212b 100644
--- a/includes/job/jobs/RefreshLinksJob.php
+++ b/includes/job/jobs/RefreshLinksJob.php
@@ -48,7 +48,7 @@
# 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'] );
}
--
To view, visit https://gerrit.wikimedia.org/r/80064
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I445e10da122e5f24e589f1eb078a31605b9f2e13
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits