summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache2.c
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2000-11-16 22:59:50 -0700
committerunknown <sasha@mysql.sashanet.com>2000-11-16 22:59:50 -0700
commit02e6c9634ded99db7fce9844723c3115c0cfc2a4 (patch)
treed8068f5b0d790b22d0da98d40533c9240c853251 /mysys/mf_iocache2.c
parent3dc874a7c09932191a8105fc922ea45fde751a67 (diff)
downloadmariadb-git-02e6c9634ded99db7fce9844723c3115c0cfc2a4.tar.gz
fixed bugs in IO_CACHE and Load_event constructor. The code now passes
replication test suite mysys/mf_iocache2.c: fixed bug in my_b_seek sql/log_event.cc: fixed bug in Load_event constructor, removed compiler warnings sql/mf_iocache.cc: _my_b_read could overflow a small buffer if the leftovers happened to be more than we wanted to read. info->pos_in_file was also not being set correctly
Diffstat (limited to 'mysys/mf_iocache2.c')
-rw-r--r--mysys/mf_iocache2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/mf_iocache2.c b/mysys/mf_iocache2.c
index b77bddb942a..1a8423981cb 100644
--- a/mysys/mf_iocache2.c
+++ b/mysys/mf_iocache2.c
@@ -32,7 +32,7 @@
void my_b_seek(IO_CACHE *info,my_off_t pos)
{
- info->seek_not_done=0;
+ info->seek_not_done=1;
info->pos_in_file=pos;
info->rc_pos=info->rc_end=info->buffer;
}