lost config in index.php made all traffic go to master

This commit is contained in:
Evan Prodromou 2010-01-28 16:52:42 -05:00
parent a33194effb
commit 63a0e84a8b

View File

@ -165,6 +165,8 @@ function setupRW()
function checkMirror($action_obj, $args)
{
global $config;
if (common_config('db', 'mirror') && $action_obj->isReadOnly($args)) {
if (is_array(common_config('db', 'mirror'))) {
// "load balancing", ha ha