diff options
author | unknown <aelkin/elkin@dsl-hkibras-fe30f900-107.dhcp.inet.fi> | 2006-11-12 20:01:58 +0200 |
---|---|---|
committer | unknown <aelkin/elkin@dsl-hkibras-fe30f900-107.dhcp.inet.fi> | 2006-11-12 20:01:58 +0200 |
commit | 57ba34ff8a9e372137d701bbe2c08fd948095326 (patch) | |
tree | 35eab99a9fe624b714c6a4cb65b747e8ea2c659c /sql/sql_repl.cc | |
parent | a403c2f925dd5da9a4928046588546d23d9dbb6d (diff) | |
download | mariadb-git-57ba34ff8a9e372137d701bbe2c08fd948095326.tar.gz |
bug#19402 SQL close to the size of the max_allowed_packet fails on the slave
comments are fixed as was suggested in reviews.
sql/log_event.h:
fixing comments
sql/slave.cc:
fixing comments
sql/sql_repl.cc:
fixing comments
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 5ac1d94b097..a20f2a6506c 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -420,7 +420,11 @@ impossible position"; goto err; } packet->set("\0", 1, &my_charset_bin); - /* dump thread the whole header size of query_log_event */ + /* + Adding MAX_LOG_EVENT_HEADER_LEN, since a binlog event can become + this larger than the corresponding packet (query) sent + from client to master. + */ thd->variables.max_allowed_packet+= MAX_LOG_EVENT_HEADER; while (!net->error && net->vio != 0 && !thd->killed) |