Converted DatabaseBase::mTrxAtomicLevels to an array
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 3 Oct 2015 23:30:13 +0000 (16:30 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 4 Oct 2015 01:25:11 +0000 (01:25 +0000)
commit01ef30fcc4952560eaaf6d17567ff0b763c3586f
tree15685d8899484e1ea977e001f8422b7a84e054db
parentca30efa30aaa50e8625cc6b98aa089a842ee40ad
Converted DatabaseBase::mTrxAtomicLevels to an array

* This simplifies the code and cleans up __construct()
  a bit while also making it less likely to cause
  trouble with unit testing mocks.
* Also add a sanity mTrxLevel check around usage
  of mTrxAtomicLevels in the one place it was missing

Change-Id: Ia0a7f22f5c27b3d4d8b51e04629f42a1ed9c3993
includes/db/Database.php