config root man

Current Path : /compat/linux/proc/68247/root/usr/opt/mysql57/mysql-test/include/

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 : //compat/linux/proc/68247/root/usr/opt/mysql57/mysql-test/include/show_all_binlogs.inc

# ==== Purpose ====
#
# Print the contents of all binary logs to the result log. This must
# only be used for debugging.
#
# ==== Usage ====
#
# [--let $output_file= FILENAME]
# [--let $append= 1]
# [--let $rpl_debug= 1]
# --source include/show_all_binlogs.inc
#
# Parameters:
#
#   $output_file
#     By default, output is printed to the result log.  If you need to
#     print it to a specific file, specify the filename with this
#     parameter.
#
#   $append
#     By default, if $output_file is specified and the file exists,
#     this script truncates the file before it writes to it.  If
#     $append is specified, the file is not truncated and the contents
#     of the binary log is appended to the end.
#
#   $rpl_debug
#     See rpl_init.inc

--let $include_filename= show_all_binlogs.inc
--source include/begin_include_file.inc


--disable_query_log

if ($output_file == '')
{
  --echo DO_NOT_CHECK_IN_THIS_LINE: include/show_all_binlogs.inc should only be used for debugging. Never check in a test that calls it on success.
}

--let $number= 1
--let $binlog_file= query_get_value(SHOW BINARY LOGS, Log_name, $number)
while ($binlog_file != 'No such row')
{
  --let $statement= SHOW BINLOG EVENTS IN '$binlog_file'
  --let $header= ======== $statement ========

  if ($output_file != '')
  {
    --let $write_var= $header
    --let $write_to_file= $output_file
    --source include/write_var_to_file.inc

    --source include/write_result_to_file.inc
  }
  if ($output_file == '')
  {
    --echo $header
    eval $statement;
  }
  --inc $number

  --let $binlog_file= query_get_value(SHOW BINARY LOGS, Log_name, $number)
}


--let $include_filename= show_all_binlogs.inc
--source include/end_include_file.inc

Man Man