diff options
author | guilhem@mysql.com <> | 2003-06-22 14:10:46 +0200 |
---|---|---|
committer | guilhem@mysql.com <> | 2003-06-22 14:10:46 +0200 |
commit | 9990ce576b666980904ae8202b079bdd8fdd00ba (patch) | |
tree | 22f5ae4e0d12cff2b9c8e8a251b831e532a52713 /sql/sql_repl.cc | |
parent | 04e5a6baa9e9a33539585456dce316e8e2fd1227 (diff) | |
download | mariadb-git-9990ce576b666980904ae8202b079bdd8fdd00ba.tar.gz |
Fixed cleanup_load_tmpdir() which deleted nothing.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index a3cfe442b0f..d0ed1a19d96 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -68,9 +68,12 @@ static int fake_rotate_event(NET* net, String* packet, char* log_file_name, int4store(header + LOG_POS_OFFSET, 0); packet->append(header, sizeof(header)); - /* We need to split the next statement because of problem with cxx */ - int4store(buf,position); - int4store(buf+4,0); + /* + An old comment said talked about a need for splitting the int8store below + into 2 int4store because of a problem with cxx; I can't understand that as + we already use int8store in Rotatel_log_event::write_data(). + */ + int8store(buf+R_POS_OFFSET,position); packet->append(buf, ROTATE_HEADER_LEN); packet->append(p,ident_len); if (my_net_write(net, (char*)packet->ptr(), packet->length())) |