Use slave for selects in CategoryMembershipJob
authoraddshore <addshorewiki@gmail.com>
Fri, 29 Jan 2016 10:10:52 +0000 (11:10 +0100)
committeraddshore <addshorewiki@gmail.com>
Sat, 30 Jan 2016 17:22:05 +0000 (18:22 +0100)
commit368cbdecddc740edf71ef1d9c90a351391c1aa4a
tree60180fd355d55b1e800fcc6e0af2b13f7c18455b
parent39fe0565d0cc6706868ad3e9b46509e82bcd593e
Use slave for selects in CategoryMembershipJob

This patch switches to using a slave but imediatly
waits for the slave to catch up with master
(so as not to miss things).

This may result in more delay between an edit and
category changes being inserted.

It may be possible to instead wait for the timestamp
that is passed in $this->params['revTimestamp']
which could result in slightly less delay.

I can't see any uses of waitForReplication in quite
this way but see no imediate reason this would not work.

Bug: T125147
Change-Id: Ia0aa722c97f41a3959bcd3cb4210b39db0c3bc45
includes/jobqueue/jobs/CategoryMembershipChangeJob.php