Removed unmatched commits in Job class.
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 27 Aug 2012 12:41:15 +0000 (14:41 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 27 Aug 2012 12:41:15 +0000 (14:41 +0200)
commitdfbf524d3561e3fc54a9a072fda173435acc2e14
tree5ab3e8d8f14ed2a2d512fca63778380a07280123
parent1c00630787b120102dd4e91507bfc91efa5f75f2
Removed unmatched commits in Job class.

Job had two calls to commit() that did not correspond to any
call to begin(). This may prematurely about any "outer" transaction,
may cause database corruption, and trigger warnings. There did not
seem to be any good reason for these commits to be there.

Sorting out unmatched begin/commit calls is important to allow the
addition of support for nested transactions, and it also helps
with finding "interesting" database problems.

Change-Id: Iff394f97fbad6e9304d75e6ad69155ada80b9c33
includes/job/Job.php