diff options
author | sasha@mysql.sashanet.com <> | 2001-01-24 09:15:34 -0700 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-01-24 09:15:34 -0700 |
commit | e8ffda53975f826c4c048dceae86d2076dbd0781 (patch) | |
tree | 389b1cade6be60d713c322e9f923adb3578a60d6 /sql/slave.h | |
parent | 343c121e6ca1303c0d4ebca46e5367c02d7fbebe (diff) | |
download | mariadb-git-e8ffda53975f826c4c048dceae86d2076dbd0781.tar.gz |
Added last_errno and last_error to show slave status
slave will skip the first SQL_SLAVE_SKIP_COUNTER events on start -
this is needed to recover from broken replication when the next log
event(s) should just be skipped.
Rotate binlogs when max_binlog_size is reached
Diffstat (limited to 'sql/slave.h')
-rw-r--r-- | sql/slave.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h index b7e2d783749..11c01a9fa03 100644 --- a/sql/slave.h +++ b/sql/slave.h @@ -93,6 +93,11 @@ extern bool opt_log_slave_updates ; pthread_handler_decl(handle_slave,arg); extern bool volatile abort_loop, abort_slave; extern bool slave_running; +extern uint32 slave_skip_counter; +// needed for problems when slave stops and +// we want to restart it skipping one or more events in the master log that +// have caused errors, and have been manually applied by DBA already + extern pthread_t slave_real_id; extern MASTER_INFO glob_mi; extern HASH replicate_do_table, replicate_ignore_table; |