summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2000-11-16 00:24:11 +0200
committerunknown <monty@narttu.mysql.fi>2000-11-16 00:24:11 +0200
commitc7d2c59ceb4e3548eb74e5d8fba16e0f41ffc7d9 (patch)
tree31119bae32d48d3c415144eb5aed588455eefa1a /sql/sql_class.h
parentdcf4e49369d91b78ab73b9de038d2729afb3a2a6 (diff)
parent9a846a52ae62f701c2d54d3f468e2ead393acf91 (diff)
downloadmariadb-git-c7d2c59ceb4e3548eb74e5d8fba16e0f41ffc7d9.tar.gz
merge
configure.in: Auto merged include/my_sys.h: Auto merged libmysql/libmysql.c: Auto merged sql/ha_berkeley.cc: Auto merged sql/handler.h: Auto merged sql/item_strfunc.cc: Auto merged sql/lex.h: Auto merged sql/mysqld.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_select.cc: Auto merged sql/sql_string.h: Auto merged BitKeeper/etc/logging_ok: Auto merged
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index e53ce950c1f..2af98d6fbf0 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
@@ -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;