config root man

Current Path : /usr/opt/mysql57/mysql-test/suite/ndb_rpl/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/opt/mysql57/mysql-test/suite/ndb_rpl/t/ndb_dist_priv_check.inc

if (!$cmd)
{
  die Missing argument $cmd;
}

if (!$chk)
{
  die Missing argument $chk;
}

# Run cmd on current connection, allow cmd to fail
# if $cmd_error is set
let $_err= 0;
if ($cmd_error)
{
  let $_err = $cmd_error;
}
--error $_err
eval $cmd;

# Check result on master servers
--connection server1
let $result_server1= `$chk`;
--connection server2
let $result_server2= `$chk`;

if ($result_server1 != $result_server2)
{
  echo cmd: $cmd;
  echo result_server1: $result_server1;
  echo result_server2: $result_server2;
  die result differed between server1 and server2;
}

# Sync slave with master and check against master
--connection server1
let $save_include_silent= $include_silent;
let $include_silent= 1;
--source include/sync_slave_sql_with_master.inc
let $include_silent= $save_include_silent;

--connection slave
let $result_slave= `$chk`;

if ($result_server1 != $result_slave)
{
  echo cmd: $cmd;
  echo result_server1: $result_server1;
  echo result_slave: $result_slave;
  die result differed between server1 and slave;
}
echo OK;
echo;

# Reset the input variables to detect missing param setup
let $cmd=;
let $chk=;
let $cmd_error=;

Man Man