Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/include/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 1 kB image not shown  

Quelle  reset_master.inc   Sprache: Delphi

 

# ==== Purpose ====
#
# Execute a RESET MASTER on the current connection, first terminating any
# lingering binlog dump threads that might still be sitting idle and would
# block the RESTE MASTER.
#
# Note that any configured IO threads on other servers must be stopped before
# calling this, as RESET MASTER cannot be run while there is a slave connected.
#
#
# ==== Usage ====
#
# [--let $kill_timeout= NUMBER]
# [--let $reset_master_retries= NUMBER]
# --source include/reset_master.inc
#
# Parameters:
#   $kill_timeout
#     Maximum number of seconds to wait for dump threads to disappear.
#   $reset_master_retries
#     Maximum number of times RESET MASTER can get ER_BINLOG_IN_USE before
#     giving up.

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

--disable_query_log

let $_retries= 10;
if ($reset_master_retries)
{
  let $_retries= $reset_master_retries;
}

let $_success= 0;
let $_i= 0;
while ($_i < $_retries)
{
  inc $_i;
  --source include/kill_binlog_dump_threads.inc
  --let $errno= 0
  --error 0,ER_BINLOG_IN_USE
  RESET MASTER;
  if (!$errno) {
    let $_success= 1;
    let $_i = $_retries;
  }
}
if (!$_success)
{
    SHOW FULL PROCESSLIST;
    --die Timeout while trying to remove dump threads and run RESET MASTER.
}

--enable_query_log

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

Messung V0.5 in Prozent
C=100 H=50 G=79

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-10-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.