summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
authorunknown <lars@mysql.com/black.(none)>2006-10-31 12:23:14 +0100
committerunknown <lars@mysql.com/black.(none)>2006-10-31 12:23:14 +0100
commit69d92fb1894df05df80a03fa1b2d80cbe16450e3 (patch)
tree0584ef2139b064ede7df1f13ef4aac8d83c09faf /sql/rpl_rli.h
parentb7d43470becf7af9ed69073209cc9781488afe9a (diff)
downloadmariadb-git-69d92fb1894df05df80a03fa1b2d80cbe16450e3.tar.gz
Refactoring: Moved rli code to new file rpl_rli.cc. The idea being that rli
should be a separate module (i.e. a class) to make it easier to maintain the code, e.g. by having checks within the rli checking sanity of data and making member variables private. This will also ease implementation of multi-source and, at least in my fantasies :), make it possible in some future to have separate replication servers. sql/Makefile.am: Added file rpl_rli.cc sql/repl_failsafe.cc: Move function sql/rpl_rli.h: moved functions sql/slave.cc: Moved rli code into rpl_rli.cc sql/sql_repl.cc: Changed function to be member function sql/rpl_rli.cc: Code for rli
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r--sql/rpl_rli.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index 392f12c2a71..479b4fcd5cb 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -21,6 +21,7 @@
#include "rpl_tblmap.h"
+
/****************************************************************************
Replication SQL Thread
@@ -164,6 +165,9 @@ typedef struct st_relay_log_info
time_t last_master_timestamp;
+ void clear_slave_error();
+ void clear_until_condition();
+
/*
Needed for problems when slave stops and we want to restart it
skipping one or more events in the master log that have caused
@@ -322,4 +326,9 @@ typedef struct st_relay_log_info
time_t unsafe_to_stop_at;
} RELAY_LOG_INFO;
+
+// Defined in rpl_rli.cc
+int init_relay_log_info(RELAY_LOG_INFO* rli, const char* info_fname);
+
+
#endif /* RPL_RLI_H */