Cleaned up database reconnection logic
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 13 May 2014 21:34:23 +0000 (14:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 13 May 2014 21:34:23 +0000 (14:34 -0700)
commit1cf145033057c1a7e70c9957fb354c927c86f350
tree4d1c3b21a00dede7db5c15d97f96dba7185d1d81
parent6125d3fbf7bb046d2765d3ef058ea984871ca36c
Cleaned up database reconnection logic

* If callbacks are pending, just throw the normal query error
  exception for the failed query and clear the callbacks. This
  way an error is still reported, but the handle can be reused
  if desired, instead of being left broken. Also the reported
  error makes more sense.

bug: 65263
Change-Id: Icb2d372e65e6c62b5d5b90a442ea7b7a7f853adc
includes/db/Database.php