diff options
author | unknown <sasha@mysql.sashanet.com> | 2002-02-07 15:29:46 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2002-02-07 15:29:46 -0700 |
commit | 0d876509340f0ba5ae67b4645137c863182ab9f4 (patch) | |
tree | d9192c46a4eb4d83decc75bbeac94c01eba13040 /sql/net_serv.cc | |
parent | 552656c3ba5e3604fabc656f8b7dec805febb91b (diff) | |
download | mariadb-git-0d876509340f0ba5ae67b4645137c863182ab9f4.tar.gz |
fixes for slave backward compat
fixed bug in LOAD DATA FROM MASTER
fixed rpl000001.result
Slave now replicates 3.23 master, with the exception of LOAD DATA INFILE,
which is still buggy. Will push this one after the pull/merge
mysql-test/r/rpl000001.result:
fixed bug in result
sql/log_event.cc:
fixes for slave backward compat
sql/log_event.h:
fixes for slave backward compat
sql/mysql_priv.h:
fixes for slave backward compat
sql/net_serv.cc:
fixes for slave backward compat
sql/repl_failsafe.cc:
fixed bug in LOAD DATA FROM MASTER
sql/slave.cc:
fixes for slave backward compat
sql/slave.h:
fixes for slave backward compat
sql/sql_load.cc:
fixes for slave backward compat
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 7a1d25e980d..811f36bd82e 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -814,3 +814,14 @@ my_net_read(NET *net) #endif /* HAVE_COMPRESS */ return len; } + +int net_request_file(NET* net, const char* fname) +{ + char tmp [FN_REFLEN+1],*end; + DBUG_ENTER("net_request_file"); + tmp[0] = (char) 251; /* NULL_LENGTH */ + end=strnmov(tmp+1,fname,sizeof(tmp)-2); + DBUG_RETURN(my_net_write(net,tmp,(uint) (end-tmp)) || + net_flush(net)); +} + |