From 653f6c80d71b8d69ffe1838cd235096a82bbda42 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 20 Aug 2013 10:44:37 -0700 Subject: [PATCH] The "masterPos" field in refreshLinks can be false so check for that Change-Id: I445e10da122e5f24e589f1eb078a31605b9f2e13 --- includes/job/jobs/RefreshLinksJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/job/jobs/RefreshLinksJob.php b/includes/job/jobs/RefreshLinksJob.php index 563ce2fafe..474212b44b 100644 --- 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'] ); } -- 2.20.1