[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@13.59.35.116: ~ $
# Example how to use this auxiliary script
#-----------------------------------------
#
### The table/tables used in $part must have the right content.
### $title_prefix is used for the generation of titles
#
# let $title_prefix= 4.3;
### $check_num is used for the generation of titles and gets incremented after
### every call of the current script.
# let $check_num= 1;
### $diff_column_list is used for the generation of error information and valid for
### every sub test.
# let $diff_column_list=
# t2.COUNT_READ - t1.COUNT_READ AS D_COUNT_READ,
# t2.COUNT_READ                 AS S2_COUNT_READ,
# t1.COUNT_READ                 AS S1_COUNT_READ,
# t2.SUM_NUMBER_OF_BYTES_READ - t1.SUM_NUMBER_OF_BYTES_READ AS D_SUM_NUMBER_OF_BYTES_READ,
# t2.SUM_NUMBER_OF_BYTES_READ                               AS S2_SUM_NUMBER_OF_BYTES_READ,
# t1.SUM_NUMBER_OF_BYTES_READ                               AS S1_SUM_NUMBER_OF_BYTES_READ,
# t2.COUNT_WRITE - t1.COUNT_WRITE AS D_COUNT_WRITE,
# t2.COUNT_WRITE                  AS S2_COUNT_WRITE,
# t1.COUNT_WRITE                  AS S1_COUNT_WRITE,
# t2.SUM_NUMBER_OF_BYTES_WRITE - t1.SUM_NUMBER_OF_BYTES_WRITE AS D_UM_NUMBER_OF_BYTES_WRITE,
# t2.SUM_NUMBER_OF_BYTES_WRITE                                AS S2_SUM_NUMBER_OF_BYTES_WRITE,
# t1.SUM_NUMBER_OF_BYTES_WRITE                                AS S1_SUM_NUMBER_OF_BYTES_WRITE,
# t2.COUNT_MISC - t1.COUNT_MISC AS D_COUNT_MISC,
# t2.COUNT_MISC                 AS S2_COUNT_MISC,
# t1.COUNT_MISC                 AS S1_COUNT_MISC;
### $part is used for the generation of "check" statements + error information
### and valid for every sub test.
# let $part=
# FROM mysqltest.socket_summary_by_instance_detail t1
# JOIN mysqltest.socket_summary_by_instance_detail t2
# USING (EVENT_NAME, OBJECT_INSTANCE_BEGIN, run)
# WHERE OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin
#   AND EVENT_NAME LIKE ('%client_connection')
#   AND run = 1;
#
# --echo # $title_prefix Check the differences caused by SQL statement
#
# let stmt1= SELECT col2 FROM does_not_exist;
# let stmt2= SELECT col2 FROM does_not_exist WHERE col1 = 0;
### $msg is used to generate some explanation of what we compare.
# let $msg=
# # One statement is longer than the other.
# # Both statements fail with the same error message (table does not exist);
# let $my_rules=
# t2.COUNT_READ                - t1.COUNT_READ                = 0  AND
# t2.SUM_NUMBER_OF_BYTES_READ  - t1.SUM_NUMBER_OF_BYTES_READ  = LENGTH('$stmt2') - LENGTH('$stmt1') AND
# t2.COUNT_WRITE               - t1.COUNT_WRITE               = 0  AND
# t2.SUM_NUMBER_OF_BYTES_WRITE - t1.SUM_NUMBER_OF_BYTES_WRITE = 0  AND
# t2.COUNT_MISC                - t1.COUNT_MISC                = 0;
# --source ../include/socket_check1.inc
#
# let stmt1= ....
# let stmt2= ....
# let $my_rules= ...
# --source ../include/socket_check1.inc
#
# ...
#

--echo # $title_prefix.$check_num Compare impact of statements
--echo #       $stmt2
--echo #       $stmt1
--echo $msg

# Enable this when extending the checks for SQL statements.
if(0)
{
   if (`SELECT CONCAT("$stmt1","$stmt2","$my_rules") LIKE '%_not_set%'`)
   {
      --echo # INTERNAL ERROR:
      --echo # At least one of the variables has no value (is like '%_not_set')
      --echo # stmt1 : $stmt1
      --echo # stmt2 : $stmt2
      --echo # my_rules : $my_rules
      --echo # Sorry, have to abort
      exit;
   }
}

if(`SELECT NOT ( $my_rules )
    $part
    AND t2.statement = '$stmt2' AND t1.statement = '$stmt1'`)
{
   --enable_query_log
   --enable_result_log
   --echo # The compared statistics looks suspicious
   --echo # We expect
   --echo $my_rules
   --echo
   --horizontal_results
   eval
   SELECT $my_rules AS Expect_1
   $part
   AND t2.statement = '$stmt2' AND t1.statement = '$stmt1';
   --echo
   --vertical_results
   eval
   SELECT $diff_column_list
   $part
   AND t1.statement = '$stmt1' AND t2.statement = '$stmt2';
   --echo
   --horizontal_results

   eval
   SELECT
      LPAD(COUNT_READ, 8, ' ') AS CNT_READ,
      LPAD(SUM_NUMBER_OF_BYTES_READ,  10,' ') AS BYTES_READ,
      LPAD(COUNT_WRITE,9, ' ') AS CNT_WRITE,
      LPAD(SUM_NUMBER_OF_BYTES_WRITE, 11,' ') AS BYTES_WRITE,
      LPAD(COUNT_MISC, 8, ' ') AS CNT_MISC, statement
   FROM mysqltest.socket_summary_by_instance_detail
   WHERE OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin
     AND EVENT_NAME LIKE ('%client_connection')
     AND run = 1
     AND statement IN('$stmt2','$stmt1');
   let $print_details= 1;
}
# Initialize all variables which depend on the statements to be checked.
# This prevents that we run with wrong data.
let $stmt1=    stmt1_not_set;
let $stmt2=    stmt2_not_set;
let $my_rules= my_rules_not_set;
let $msg=      msg_not_set;
inc $check_num;



Filemanager

Name Type Size Permission Actions
binlog_edge_common.inc File 5.46 KB 0644
binlog_ok_common.inc File 3.9 KB 0644
cleanup_helper.inc File 356 B 0644
connection_cleanup.inc File 794 B 0644
connection_load.inc File 6.1 KB 0644
connection_setup.inc File 3.01 KB 0644
digest_cleanup.inc File 387 B 0644
digest_execution.inc File 3.96 KB 0644
digest_setup.inc File 618 B 0644
disable_instruments.inc File 548 B 0644
enable_instruments.inc File 549 B 0644
event_aggregate_cleanup.inc File 1.62 KB 0644
event_aggregate_load.inc File 24.49 KB 0644
event_aggregate_setup.inc File 13.05 KB 0644
have_aligned_memory.inc File 548 B 0644
hostcache_dump.inc File 1.13 KB 0644
hostcache_set_state.inc File 651 B 0644
privilege.inc File 4.91 KB 0644
rpl_statements_truncate.inc File 683 B 0644
schema.inc File 2.54 KB 0644
setup_helper.inc File 1.1 KB 0644
sizing_auto.inc File 958 B 0644
socket_check1.inc File 4.63 KB 0644
socket_event.inc File 6.94 KB 0644
socket_event_dbg.inc File 2.95 KB 0644
socket_ipv6.inc File 2.98 KB 0644
socket_summary_check.inc File 8.18 KB 0644
socket_summary_check_dbg.inc File 8.37 KB 0644
stage_cleanup.inc File 915 B 0644
stage_setup.inc File 3.86 KB 0644
start_server_common.inc File 4.29 KB 0644
table_aggregate_cleanup.inc File 1.52 KB 0644
table_aggregate_load.inc File 13.96 KB 0644
table_aggregate_setup.inc File 8.82 KB 0644
table_io_basic_dml.inc File 1.1 KB 0644
table_io_cleanup_helper.inc File 336 B 0644
table_io_result_helper.inc File 702 B 0644
table_io_setup_helper.inc File 1.76 KB 0644
upgrade_check.inc File 435 B 0644
wait_for_pfs_thread_count.inc File 710 B 0644
wait_till_sleep.inc File 590 B 0644