diff options
author | sasha@mysql.sashanet.com <> | 2001-08-03 15:57:53 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-08-03 15:57:53 -0600 |
commit | 09eda84f2e0a8e9475017b607f66efe2e63aca34 (patch) | |
tree | 7a15577166ddda4e7b8c9c9cb80471777aeb717b /mysys | |
parent | d4d22f21fd2723689ba8f7bb3c2e1f1bac8aa0c8 (diff) | |
download | mariadb-git-09eda84f2e0a8e9475017b607f66efe2e63aca34.tar.gz |
LOAD DATA INFILE is now replicated properly, except for cleanup on
Stop event and bugs the test suite could not catch
Did some big restructuring of binlog event classes - most important
change is that now each event class has exec_event method and one does
not need to modify slave core code to add a new event. Slave code is
now much smaller and easier to read
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_iocache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c index 99af418f6bd..0ef496227b6 100644 --- a/mysys/mf_iocache.c +++ b/mysys/mf_iocache.c @@ -56,7 +56,8 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize, DBUG_PRINT("enter",("type: %d pos: %ld",(int) type, (ulong) seek_offset)); info->file=file; - info->pre_read = info->post_read = 0; + info->pre_close = info->pre_read = info->post_read = 0; + info->arg = 0; if (!cachesize) if (! (cachesize= my_default_record_cache_size)) DBUG_RETURN(1); /* No cache requested */ @@ -608,7 +609,10 @@ int flush_io_cache(IO_CACHE *info) int end_io_cache(IO_CACHE *info) { int error=0; + IO_CACHE_CALLBACK pre_close; DBUG_ENTER("end_io_cache"); + if((pre_close=info->pre_close)) + (*pre_close)(info); if (info->buffer) { if (info->file != -1) /* File doesn't exist */ @@ -618,3 +622,4 @@ int end_io_cache(IO_CACHE *info) } DBUG_RETURN(error); } /* end_io_cache */ + |