summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-05 10:21:47 +0200
committerErich Eckner <git@eckner.net>2018-06-05 10:21:47 +0200
commit86d99879fbfd00d79c9218f00551115cf0373eae (patch)
treeb6cd85c3a97bf532668835bbf3011b15edb8399a /bin
parent3ef094b82a8ab76804c5a7553ccf1b65291e0d35 (diff)
downloadbuilder-86d99879fbfd00d79c9218f00551115cf0373eae.tar.xz
bin/ping-from-slave: join -> where not null
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ping-from-slave4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ping-from-slave b/bin/ping-from-slave
index c70c1d7..e5a67c3 100755
--- a/bin/ping-from-slave
+++ b/bin/ping-from-slave
@@ -14,9 +14,9 @@ if [ "$(
# shellcheck disable=SC2016,SC2154
{
printf 'SELECT COUNT(1) FROM `build_slaves`'
- mysql_join_build_slaves_build_assignments
- printf ' WHERE `build_slaves`.`name`=from_base64("%s");\n' \
+ printf ' WHERE `build_slaves`.`name`=from_base64("%s")' \
"$(printf '%s' "${slave}" | base64 -w0)"
+ printf ' AND `build_slaves`.`currently_building` IS NOT NULL;\n'
} | \
mysql_run_query 'unimportant' || \
echo '1'