Commit c729c0ea authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi

Safety fix to not allow one to specify too big max_alloc_packet to mysqld

Safety fix to not cause conflicts with extended packages in 4.0.
parent afa028dc
...@@ -2984,7 +2984,7 @@ CHANGEABLE_VAR changeable_vars[] = { ...@@ -2984,7 +2984,7 @@ CHANGEABLE_VAR changeable_vars[] = {
#endif #endif
,0, 1, 0, 1 }, ,0, 1, 0, 1 },
{ "max_allowed_packet", (long*) &max_allowed_packet, { "max_allowed_packet", (long*) &max_allowed_packet,
1024*1024L, 80, 64*1024*1024L, MALLOC_OVERHEAD, 1024 }, 1024*1024L, 80, 16*1024*1024L, MALLOC_OVERHEAD, 1024 },
{ "max_binlog_cache_size", (long*) &max_binlog_cache_size, { "max_binlog_cache_size", (long*) &max_binlog_cache_size,
~0L, IO_SIZE, ~0L, 0, IO_SIZE }, ~0L, IO_SIZE, ~0L, 0, IO_SIZE },
{ "max_binlog_size", (long*) &max_binlog_size, { "max_binlog_size", (long*) &max_binlog_size,
......
...@@ -40,7 +40,7 @@ ulong max_allowed_packet=65536; ...@@ -40,7 +40,7 @@ ulong max_allowed_packet=65536;
extern ulong net_read_timeout,net_write_timeout; extern ulong net_read_timeout,net_write_timeout;
extern uint test_flags; extern uint test_flags;
#else #else
ulong max_allowed_packet=16*1024*1024L; ulong max_allowed_packet=16*1024*1024L-1;
ulong net_read_timeout= NET_READ_TIMEOUT; ulong net_read_timeout= NET_READ_TIMEOUT;
ulong net_write_timeout= NET_WRITE_TIMEOUT; ulong net_write_timeout= NET_WRITE_TIMEOUT;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment