Make the JobRunner flushReplicaSnapshots() call cover the first job
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Aug 2019 19:28:18 +0000 (15:28 -0400)
committerKrinkle <krinklemail@gmail.com>
Sun, 25 Aug 2019 14:07:24 +0000 (14:07 +0000)
commit0844db0b6d98d8346d8561d53691219fc51cab2c
tree6cb47a737b5b987c041ae692f5e5f8f66d233606
parentcd1fd64bec33669f052a835607bdfa780c4b6a0f
Make the JobRunner flushReplicaSnapshots() call cover the first job

If JobRunner is called when replica transactions exists, the first job
would previously use the stale REPEATABLE-READ snapshot data.

Also clear any master connection snapshots via commitMasterChanges().
This makes the code more similar to DeferredUpdates::attemptUpdate().

Change-Id: I2157a91fb01ea8c233f964b1f3164e8c3b1a07ca
includes/jobqueue/JobRunner.php