Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/65333
Change subject: De-duplicate refreshLinks2 base jobs on insert.
......................................................................
De-duplicate refreshLinks2 base jobs on insert.
* This should work better and take up less space than using root job
de-duplication alone.
Change-Id: Ie339ccf0eed93f5d525a24519d20811de8f6c0b5
---
M includes/job/jobs/RefreshLinksJob.php
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/33/65333/1
diff --git a/includes/job/jobs/RefreshLinksJob.php
b/includes/job/jobs/RefreshLinksJob.php
index 57cad87..85cf506 100644
--- a/includes/job/jobs/RefreshLinksJob.php
+++ b/includes/job/jobs/RefreshLinksJob.php
@@ -109,6 +109,8 @@
class RefreshLinksJob2 extends Job {
function __construct( $title, $params, $id = 0 ) {
parent::__construct( 'refreshLinks2', $title, $params, $id );
+ // Base jobs for large templates can easily be de-duplicated
+ $this->removeDuplicates = !isset( $params['start'] ) && !isset(
$params['end'] );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/65333
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie339ccf0eed93f5d525a24519d20811de8f6c0b5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.22wmf4
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits