Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/binlog/include/     Datei vom 1.9.2026 mit Größe 694 B image not shown  

Quelle  check_binlog_size.inc   Sprache: Delphi

 

# This file runs the query and checks
# whether the size of binlog is increased or not
# If size is changed it issue die command
# Parameters
# $sql_query = query to run

#Only last row of show binlog events matter
--let $tmp= 0
--let $counter= 1
while ($tmp != "No such row")
{
  --let $initial_binlog_size= $tmp
  --let $tmp= query_get_value(show binary logs, File_size, $counter)
  --inc $counter
}

--eval  $sql_query

--let $tmp= 0
--let $counter= 1
while ($tmp != "No such row")
{
  --let $current_binlog_size= $tmp
  --let $tmp= query_get_value(show binary logs, File_size, $counter)
  --inc $counter
}

if ($initial_binlog_size != $current_binlog_size)
{
  die "Binlog size changed";
}

Messung
CHZG
80858884

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland