diff options
author | mats@kindahl-laptop.dnsalias.net <> | 2007-08-16 07:37:50 +0200 |
---|---|---|
committer | mats@kindahl-laptop.dnsalias.net <> | 2007-08-16 07:37:50 +0200 |
commit | 9c4ef25c55861b403dbc964b32a4297f03c8ba66 (patch) | |
tree | 60e368275522a93827d2542c48a28dede4305037 /sql/rpl_rli.h | |
parent | 57df03de46da737433465347bfc0d521f6d4c85d (diff) | |
download | mariadb-git-9c4ef25c55861b403dbc964b32a4297f03c8ba66.tar.gz |
Renaming RELAY_LOG_INFO and st_relay_log_info to follow coding standards
(and be more friendly to Doxygen by removing unnecessary typedefs).
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r-- | sql/rpl_rli.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h index 7ae21897e3f..17b807e9882 100644 --- a/sql/rpl_rli.h +++ b/sql/rpl_rli.h @@ -27,16 +27,16 @@ struct RPL_TABLE_LIST; Replication SQL Thread - st_relay_log_info contains: + Relay_log_info contains: - the current relay log - the current relay log offset - master log name - master log sequence corresponding to the last update - misc information specific to the SQL thread - st_relay_log_info is initialized from the slave.info file if such exists. - Otherwise, data members are intialized with defaults. The initialization is - done with init_relay_log_info() call. + Relay_log_info is initialized from the slave.info file if such + exists. Otherwise, data members are intialized with defaults. The + initialization is done with init_relay_log_info() call. The format of slave.info file: @@ -49,8 +49,9 @@ struct RPL_TABLE_LIST; *****************************************************************************/ -typedef struct st_relay_log_info : public Slave_reporting_capability +class Relay_log_info : public Slave_reporting_capability { +public: /** Flags for the state of the replication. */ @@ -255,8 +256,8 @@ typedef struct st_relay_log_info : public Slave_reporting_capability char ign_master_log_name_end[FN_REFLEN]; ulonglong ign_master_log_pos_end; - st_relay_log_info(); - ~st_relay_log_info(); + Relay_log_info(); + ~Relay_log_info(); /* Invalidate cached until_log_name and group_relay_log_name comparison @@ -391,11 +392,11 @@ typedef struct st_relay_log_info : public Slave_reporting_capability private: uint32 m_flags; -} RELAY_LOG_INFO; +}; // Defined in rpl_rli.cc -int init_relay_log_info(RELAY_LOG_INFO* rli, const char* info_fname); +int init_relay_log_info(Relay_log_info* rli, const char* info_fname); #endif /* RPL_RLI_H */ |