diff options
author | monty@narttu.mysql.fi <> | 2003-02-28 22:24:00 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-02-28 22:24:00 +0200 |
commit | e8aa21c8d30c11b5dabd31cc90c59f49049a04a1 (patch) | |
tree | d537e0166ddcfafa848c4a7753e9554d268108c7 /sql/mf_iocache.cc | |
parent | c908b0ed16fc689854bd3c8216596d064ee96fdb (diff) | |
download | mariadb-git-e8aa21c8d30c11b5dabd31cc90c59f49049a04a1.tar.gz |
LOAD DATA INFILE is not replicated if replicate_*_table is set
LOAD DATA LOCAL INFILE was not replicated correctly
Diffstat (limited to 'sql/mf_iocache.cc')
-rw-r--r-- | sql/mf_iocache.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/mf_iocache.cc b/sql/mf_iocache.cc index 1bc65eebd23..3b70dae2563 100644 --- a/sql/mf_iocache.cc +++ b/sql/mf_iocache.cc @@ -70,13 +70,18 @@ int _my_b_net_read(register IO_CACHE *info, byte *Buffer, /* to set up stuff for my_b_get (no _) */ info->read_end = (info->read_pos = (byte*) net->read_pos) + read_length; Buffer[0] = info->read_pos[0]; /* length is always 1 */ - info->read_pos++; /* info->request_pos is used by log_loaded_block() to know the size - of the current block + of the current block. + info->pos_in_file is used by log_loaded_block() too. */ + info->pos_in_file+= read_length; info->request_pos=info->read_pos; + + info->read_pos++; + +info->request_pos=info->read_pos; DBUG_RETURN(0); } |