Rollback transaction in case of uncaught exceptions during job
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 6 Apr 2014 02:02:02 +0000 (23:02 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 6 Apr 2014 02:02:02 +0000 (23:02 -0300)
commit2ab242ae0fb4d34c1eeca16c9602b8af821dd787
treecf2d75dbf98135cc7588fa88026f09c2ca49630d
parent2d20084aa282d51bcb7c11d40cb4f226bc7141cb
Rollback transaction in case of uncaught exceptions during job

If there is an unhandled exception during a job, rollback the
transaction to be safe. Otherwise its likely that the
transaction will be commited when next job is run, as $dbw->begin()
implicitly commits any open pending transactions. This can result
in database referential integrity issues.

Change-Id: I5807e64440ff6c6651fbbb4924645d05d843b98e
includes/specials/SpecialRunJobs.php
maintenance/runJobs.php