Enforce lagged-slave read-only mode on the DB layer
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 5 Oct 2015 05:15:33 +0000 (22:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 5 Oct 2015 05:41:19 +0000 (05:41 +0000)
commitdb170ebe78a9888b4966cc934f9571ee22ad2821
treecae44d1ed042815f9a763214550508984e44b214
parentd21c75418d856b06dcb6307c6f01ddda40f30b3c
Enforce lagged-slave read-only mode on the DB layer

* Most callers gracefully check wfReadOnly(),
  but fail in case they dont. This also catches
  foreign DBs which might slip through the cracks.
* Also remove useless wfDebug() call around
  mDoneWrites check as write queries show in
  the logs anyway.

Change-Id: I560ebd19c4eb2b3a040d4331702346440617cfaa
autoload.php
includes/db/Database.php
includes/db/DatabaseError.php
includes/db/loadbalancer/LoadBalancer.php