Automatically detect READ_ONLY mode for MySQL/MariaDB
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 22 Jul 2016 05:15:30 +0000 (22:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Jul 2016 02:32:06 +0000 (02:32 +0000)
commitf4bf52e84388ad0d1d270aac9092b49f05bfc988
tree9150fb30e52b7b8e304d21a837d745ab0e97699e
parent4c7cd244699256a2ae45ead1b0651291540ab114
Automatically detect READ_ONLY mode for MySQL/MariaDB

This avoids having users think they can make edits when an
exception will just be thrown when they try to save. Likewise
for other write actions.

Bug: T24923
Change-Id: I49c4057b672875ec6f34681a5668a509cec05677
includes/db/DBConnRef.php
includes/db/Database.php
includes/db/DatabaseMysqlBase.php
includes/db/IDatabase.php
includes/db/loadbalancer/LoadBalancer.php