index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-04-17 10:04:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-17 10:04:07 +0200 |
commit | 5c5ed42237757efcf698a36c37cf9bd0630232c3 (patch) | |
tree | 184a92122c95c33ccb09aa5db2955af2d32e2771 /lib/mysql.php | |
parent | 8af016645fee5c0b22e69d46de9b3401c1bc82d3 (diff) |
-rw-r--r-- | lib/mysql.php | 1 |
diff --git a/lib/mysql.php b/lib/mysql.php index a5edbd5..94d35b8 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -17,6 +17,7 @@ function mysql_run_query($query) { die_500( "Query failed: " . $mysql -> error ); return $result; } + function show_warning_on_offline_slave() { $result = mysql_run_query("SHOW STATUS LIKE \"Slave_running\""); if (($result -> num_rows == 0) || |