summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2000-11-15 23:00:06 +0200
committermonty@narttu.mysql.fi <>2000-11-15 23:00:06 +0200
commite69becf133867fff26b59ba74ec1ee722ce1e81e (patch)
tree622092bf596b26a1f762020729c03d573a5b216d /sql/sql_class.cc
parent7a013339f84c48ea6194a35d9c00d0d549466b1d (diff)
downloadmariadb-git-e69becf133867fff26b59ba74ec1ee722ce1e81e.tar.gz
changed to use IO_CACHE instead of FILE
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index b65c5d1978f..7c0ad74424c 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -113,11 +113,17 @@ THD::THD()
ull=0;
system_thread=0;
bzero((char*) &mem_root,sizeof(mem_root));
+#if defined(HAVE_BDB) || defined(HAVE_INNOBASE) || defined(HAVE_GEMENI)
+ if (open_cached_file(&transactions.trans_log,
+ mysql_tempdir,LOG_PREFIX,0,MYF(MY_WME)))
+ killed=1;
+ transaction.bdb_lock_count=0;
+#endif
+ transaction.bdb_tid=0;
+
#ifdef __WIN__
real_id = 0 ;
#endif
- transaction.bdb_lock_count=0;
- transaction.bdb_tid=0;
}
THD::~THD()
@@ -136,6 +142,9 @@ THD::~THD()
close_thread_tables(this);
}
close_temporary_tables(this);
+#if defined(HAVE_BDB) || defined(HAVE_INNOBASE) || defined(HAVE_GEMENI)
+ close_cached_file(transactions.trans_log);
+#endif
if (global_read_lock)
{
pthread_mutex_lock(&LOCK_open);