mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.11 into 11.0
This commit is contained in:
@@ -40,7 +40,8 @@ bool debug_decrement_counter(const LEX_CSTRING *name)
|
||||
THD *thd= current_thd;
|
||||
user_var_entry *entry= (user_var_entry*)
|
||||
my_hash_search(&thd->user_vars, (uchar*) name->str, name->length);
|
||||
if (!entry || entry->type != INT_RESULT || ! entry->value)
|
||||
if (!entry || !entry->value ||
|
||||
entry->type_handler()->result_type() != INT_RESULT)
|
||||
return 0;
|
||||
(*(ulonglong*) entry->value)= (*(ulonglong*) entry->value)-1;
|
||||
return !*(ulonglong*) entry->value;
|
||||
|
Reference in New Issue
Block a user