Remove useless commit calls in JobRunner
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 12 Oct 2017 19:00:07 +0000 (12:00 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 12 Oct 2017 19:00:07 +0000 (12:00 -0700)
commit7f571f9bca4f562332e9d7d3c73d983646dab8bf
tree203f0797ba2c647e011a882815d2cc62edce4b9b
parent899b6de393c02d848d5f3e5cbb3a9596d3c3f4a7
Remove useless commit calls in JobRunner

These were meant as sanity checks, but would fail in those
unusual cases anyway with exceptions. Instead, have an
early check to make sure no explicit transaction rounds
are active when JobRunner:run is called.

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