Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 10:04:07 +0200
committerErich Eckner <git@eckner.net>2018-04-17 10:04:07 +0200
commit5c5ed42237757efcf698a36c37cf9bd0630232c3 (patch)
tree184a92122c95c33ccb09aa5db2955af2d32e2771 /lib/mysql.php
parent8af016645fee5c0b22e69d46de9b3401c1bc82d3 (diff)
buildmaster/*.php: use lib/mysql.php
Diffstat (limited to 'lib/mysql.php')
-rw-r--r--lib/mysql.php1
1 files changed, 1 insertions, 0 deletions
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) ||