diff options
author | unknown <sasha@mysql.sashanet.com> | 2000-11-15 18:58:59 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2000-11-15 18:58:59 -0700 |
commit | f44a41f013a8791fc2ddba88a9f23efe5cfb6c99 (patch) | |
tree | d78befdf5251596d35567b37ed5edb3edae3f8bd /sql/sql_class.h | |
parent | 11b725d1a3417e7c9704a2e4d4bde519a513a0fb (diff) | |
parent | 3e6dac34cd5b8ef322d375f3af22137822656c8a (diff) | |
download | mariadb-git-f44a41f013a8791fc2ddba88a9f23efe5cfb6c99.tar.gz |
merged
sql/log_event.h:
Auto merged
sql/mysqlbinlog.cc:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
sql/sql_class.h:
Auto merged
BitKeeper/etc/logging_ok:
Auto converge
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index aef4c2c5c42..bc3681e3170 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -52,16 +52,16 @@ typedef struct st_log_info class MYSQL_LOG { - public: private: pthread_mutex_t LOCK_log, LOCK_index; - FILE *file, *index_file; time_t last_time,query_start; + IO_CACHE log_file; + File index_file; char *name; - enum_log_type log_type; + volatile enum_log_type log_type; char time_buff[20],db[NAME_LEN+1]; char log_file_name[FN_REFLEN],index_file_name[FN_REFLEN]; - bool write_error,inited; + bool write_error,inited,opened; bool no_rotate; // for binlog - if log name can never change // we should not try to rotate it or write any rotation events // the user should use FLUSH MASTER instead of FLUSH LOGS for @@ -85,7 +85,6 @@ public: void make_log_name(char* buf, const char* log_ident); bool is_active(const char* log_file_name); int purge_logs(THD* thd, const char* to_log); - void flush(void); void close(bool exiting = 0); // if we are exiting, we also want to close the // index file @@ -99,7 +98,7 @@ public: char* get_log_fname() { return log_file_name; } void lock_index() { pthread_mutex_lock(&LOCK_index);} void unlock_index() { pthread_mutex_unlock(&LOCK_index);} - FILE* get_index_file() { return index_file;} + File get_index_file() { return index_file;} }; /* character conversion tables */ @@ -244,6 +243,7 @@ public: thr_lock_type update_lock_default; delayed_insert *di; struct st_transactions { + IO_CACHE trans_log; void *bdb_tid; uint bdb_lock_count; } transaction; |