#At file:///home/kgeorge/mysql/bzr/merge-6.0-bugteam/
2822 Georgi Kodinov 2008-09-03 [merge]
merge 6.0-bugteam -> local tree
modified:
sql/handler.cc
=== modified file 'sql/handler.cc'
--- a/sql/handler.cc 2008-08-22 11:16:08 +0000
+++ b/sql/handler.cc 2008-09-03 14:40:19 +0000
@@ -4262,6 +4262,13 @@ int DsMrr_impl::dsmrr_init(handler *h, K
/* Create a separate handler object to do rndpos() calls. */
THD *thd= current_thd;
+
+ /*
+ ::clone() takes up a lot of stack, especially on 64 bit platforms.
+ The constant 5 is an empiric result.
+ */
+ if (check_stack_overrun(thd, 5*STACK_MIN_SIZE, (uchar*) &new_h2))
+ DBUG_RETURN(1);
if (!(new_h2= h->clone(thd->mem_root)) ||
new_h2->ha_external_lock(thd, F_RDLCK))
{
| Thread |
|---|
| • bzr commit into mysql-6.0 branch (kgeorge:2822) | Georgi Kodinov | 3 Sep |