diff options
author | unknown <serg@serg.mylan> | 2005-02-22 00:15:31 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-02-22 00:15:31 +0100 |
commit | 3ad8d4ba881717d3045cdd170b3828bd0db67b2e (patch) | |
tree | 77fc83895e1c2e9fd2373e6c48219d5fdbf1cb72 /sql/sql_class.h | |
parent | 0baf8fabee8ee57369ba6b3ef2e1e239732c2d74 (diff) | |
download | mariadb-git-3ad8d4ba881717d3045cdd170b3828bd0db67b2e.tar.gz |
bug#8646 - deadlock if long transaction causes binlog rotate
sql/sql_yacc.yy:
duplicated symbol removed
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 5286990f9c6..e793f5776d7 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -174,6 +174,9 @@ typedef struct st_user_var_events uint charset_number; } BINLOG_USER_VAR_EVENT; +#define RP_LOCK_LOG_IS_ALREADY_LOCKED 1 +#define RP_FORCE_ROTATE 2 + class Log_event; /* @@ -300,7 +303,7 @@ public: } bool open_index_file(const char *index_file_name_arg, const char *log_name); - void new_file(bool need_lock= 1); + void new_file(bool need_lock); bool write(THD *thd, enum enum_server_command command, const char *format,...); bool write(THD *thd, const char *query, uint query_length, @@ -319,6 +322,7 @@ public: void make_log_name(char* buf, const char* log_ident); bool is_active(const char* log_file_name); int update_log_index(LOG_INFO* linfo, bool need_update_threads); + void rotate_and_purge(uint flags); int purge_logs(const char *to_log, bool included, bool need_mutex, bool need_update_threads, ulonglong *decrease_log_space); |