summaryrefslogtreecommitdiffstats
path: root/mysql-test/include/galera_suspend.inc
blob: d4037d8958ca19aac805ce7a2c34648e45c8faa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# This macro suspends the current node
#

--let _SUSPEND_NODE_PIDFILE = `SELECT @@pid_file`
--echo Suspending node ...

--perl
        my $pid_filename = $ENV{'_SUSPEND_NODE_PIDFILE'};
        my $mysqld_pid = `cat $pid_filename`;
        chomp($mysqld_pid);
        system("kill -SIGSTOP $mysqld_pid");
        exit(0);
EOF