Do not auto-reconnect to DBs if named locks where lost
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Jan 2016 17:17:17 +0000 (09:17 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Jan 2016 17:17:17 +0000 (09:17 -0800)
commit79d12a284b8baf05d6cb600e616e576f1977e6a9
tree9b29f82dc38606212c4aeb318487bda219729f3a
parent4db074ef0b63b8006d5f387a51cbb7b187c0d6b6
Do not auto-reconnect to DBs if named locks where lost

Otherwise, transactions might be committed without cooperative
locks that were supposed to be present. This is similar to the
logic of not auto-reconnecting if a transaction was started to
avoid committing incomplete changes.

Change-Id: Ia7bc6b188bb5ee53a5bf7c5a30718bc7c4dd0ba9
includes/db/Database.php
includes/db/DatabaseMysqlBase.php
includes/db/DatabasePostgres.php