summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorjani@a193-229-222-105.elisa-laajakaista.fi <>2005-09-30 12:36:23 +0300
committerjani@a193-229-222-105.elisa-laajakaista.fi <>2005-09-30 12:36:23 +0300
commit43b544a968582c2bbf5bab2fd5e2093d5b47de16 (patch)
tree46e4f0b440e6f71cce0bd6d08e417177132ed980 /mysys
parentfd9a6f9750c160997a8cd9c73ef32480dfeb9a65 (diff)
parentaa08fd0d0aa56894196b242b5769cf74d3908a15 (diff)
downloadmariadb-git-43b544a968582c2bbf5bab2fd5e2093d5b47de16.tar.gz
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0
into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.0-icc
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_iocache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index b000af19aa0..63f5dc964da 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -165,7 +165,7 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
(ulong) info, (int) type, (ulong) seek_offset));
info->file= file;
- info->type= 0; /* Don't set it until mutex are created */
+ info->type= TYPE_NOT_SET; /* Don't set it until mutex are created */
info->pos_in_file= seek_offset;
info->pre_close = info->pre_read = info->post_read = 0;
info->arg = 0;
@@ -1246,7 +1246,7 @@ int end_io_cache(IO_CACHE *info)
if (info->type == SEQ_READ_APPEND)
{
/* Destroy allocated mutex */
- info->type=0;
+ info->type= TYPE_NOT_SET;
#ifdef THREAD
pthread_mutex_destroy(&info->append_buffer_lock);
#endif