diff options
author | Urban Müller | 2016-06-21 16:57:43 +0200 |
---|---|---|
committer | Urban Müller | 2016-06-21 16:57:43 +0200 |
commit | aa1711349427eb2ef0a4894059512821e7074313 (patch) | |
tree | 009b4c1c3067c0a502e26b351fbb6acf29087d81 /it_dbi.class | |
parent | d9912050e844cce1fd44575ff2857f140e7d6591 (diff) | |
download | itools-aa1711349427eb2ef0a4894059512821e7074313.tar.gz itools-aa1711349427eb2ef0a4894059512821e7074313.tar.bz2 itools-aa1711349427eb2ef0a4894059512821e7074313.zip |
stricter active replication check
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index 4f1e599..1022827 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -462,7 +462,7 @@ function query($query, $p = array()) $this->_p['server'] = $p['server'] = $p['server_update']; unset($this->_p['server_update'], $p['server_update'], $this->_link); } - else if ($p['server'] == "localhost" && $p['db'] == $GLOBALS['ULTRADB'] && preg_grep('/replicat/', (array)@file($GLOBALS['ULTRAHOME'] . "/etc/my.cnf"))) + else if ($p['server'] == "localhost" && $p['db'] == $GLOBALS['ULTRADB'] && preg_grep('/replicate-do/', (array)@file($GLOBALS['ULTRAHOME'] . "/etc/my.cnf"))) if (($t = @file($GLOBALS['ULTRAHOME'] . "/doc/machines.txt")) && preg_grep("/^" . gethostname() . "/", array_slice($t, 2))) it::error("local mysql write on a replication slave machine?"); } |