mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Minor cleanups
- Remove impossible test in test_quick_select - Ensure that is_fatal_error is set if we run out of stack space
This commit is contained in:
@@ -6181,6 +6181,7 @@ bool check_stack_overrun(THD *thd, long margin,
|
||||
if ((stack_used=used_stack(thd->thread_stack,(char*) &stack_used)) >=
|
||||
(long) (my_thread_stack_size - margin))
|
||||
{
|
||||
thd->is_fatal_error= 1;
|
||||
/*
|
||||
Do not use stack for the message buffer to ensure correct
|
||||
behaviour in cases we have close to no stack left.
|
||||
|
Reference in New Issue
Block a user