1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +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.
This commit is contained in:
aelkin/elkin@dsl-hkibras-fe30f900-107.dhcp.inet.fi
2006-11-12 20:01:58 +02:00
parent fe5de9f5c3
commit 5a20c54201
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)