Fixed bitfield check in User::loadFromId()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 10 Jul 2015 23:52:26 +0000 (16:52 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 10 Jul 2015 23:52:28 +0000 (16:52 -0700)
commite0ee2cdc4b1a24ae26d53e09f0fabe5d04ed340b
tree7a54de39ae3889b9643c85f0cc59f8b0643e92e6
parent49622354b4e539570655e07d3f3ee88f6664af0c
Fixed bitfield check in User::loadFromId()

* READ_LOCKING is a composite field, so it can yeild 00, 01,
  10, or 11 for the relevant two bits. Only one of them should
  pass the check to avoid locking and snapshot breaking queries
  for no reason.

Change-Id: Ief04ac20c7639fcf79443a3ee39a471542a59551
includes/User.php