summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
authorlars@mysql.com/black.(none) <>2006-10-31 12:23:14 +0100
committerlars@mysql.com/black.(none) <>2006-10-31 12:23:14 +0100
commit1e038dc88212be986fb90829a9d90cafcfe51530 (patch)
tree0584ef2139b064ede7df1f13ef4aac8d83c09faf /sql/rpl_rli.h
parent3a3d673dd5386c8ecb359743a2bfec5faee98193 (diff)
downloadmariadb-git-1e038dc88212be986fb90829a9d90cafcfe51530.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.
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 */