The "masterPos" field in refreshLinks can be false so check for that
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Aug 2013 17:44:37 +0000 (10:44 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Aug 2013 17:44:37 +0000 (10:44 -0700)
Change-Id: I445e10da122e5f24e589f1eb078a31605b9f2e13

includes/job/jobs/RefreshLinksJob.php

index 563ce2f..474212b 100644 (file)
@@ -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'] );
                }