mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
"After Monty's review" changes to the fix for BUG#8325 "Deadlock in replication thread stops replication":
s/sleep/safe_sleep (thread safe); sleep 0/1/2/3/4/5/5/5 (get slave less late); no message on error log (deadlock is too common sometimes), a global counter instead (SHOW STATUS LIKE 'slave_retried_transactions'). Plus a fix for libmysql/Makefile.shared
This commit is contained in:
@@ -295,7 +295,14 @@ typedef struct st_relay_log_info
|
||||
UNTIL_LOG_NAMES_CMP_EQUAL= 0, UNTIL_LOG_NAMES_CMP_GREATER= 1
|
||||
} until_log_names_cmp_result;
|
||||
|
||||
ulong trans_retries;
|
||||
/*
|
||||
trans_retries varies between 0 to slave_transaction_retries and counts how
|
||||
many times the slave has retried the present transaction; gets reset to 0
|
||||
when the transaction finally succeeds. retried_trans is a cumulative
|
||||
counter: how many times the slave has retried a transaction (any) since
|
||||
slave started.
|
||||
*/
|
||||
ulong trans_retries, retried_trans;
|
||||
|
||||
st_relay_log_info();
|
||||
~st_relay_log_info();
|
||||
|
||||
Reference in New Issue
Block a user