From d26a78b39f019ae7411fb3ba26633f74973943bd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 17 Apr 2018 15:19:23 +0200 Subject: bin/slave-build-connect: skip update of last_connection --- bin/slave-build-connect | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bin/slave-build-connect b/bin/slave-build-connect index 53c882b..0743e96 100755 --- a/bin/slave-build-connect +++ b/bin/slave-build-connect @@ -18,8 +18,8 @@ if [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xget-assignment' ] || \ # shellcheck disable=SC2016 { - printf 'INSERT INTO `ssh_log` (`date`,`build_slave`,`action`,`parameters`)' - printf ' SELECT NOW(),`build_slaves`.`id`' + printf 'INSERT INTO `ssh_log` (`build_slave`,`action`,`parameters`)' + printf ' SELECT `build_slaves`.`id`' printf ',from_base64("%s")' \ "$( printf '%s' "${SSH_ORIGINAL_COMMAND%% *}" | \ @@ -35,13 +35,6 @@ if [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xget-assignment' ] || \ printf '%s' "$1" | \ base64 -w0 )" - printf 'UPDATE `build_slaves`' - printf ' SET `build_slaves`.`last_connection`=NOW()' - printf ' WHERE `build_slaves`.`name`=from_base64("%s");\n' \ - "$( - printf '%s' "$1" | \ - base64 -w0 - )" } | \ mysql_run_query -- cgit v1.2.3-70-g09d2