1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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
This commit is contained in:
unknown
2006-11-12 20:01:58 +02:00
parent a403c2f925
commit 57ba34ff8a
3 changed files with 20 additions and 5 deletions

View File

@@ -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)