mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
MDEV-24909 JSON functions don't respect KILL QUERY / max_statement_time limit
pass the pointer to thd->killed down to the json library, check it while scanning, use thd->check_killed() to generate the proper error message
This commit is contained in:
@@ -222,6 +222,7 @@ typedef struct st_json_engine_t
|
||||
|
||||
int stack[JSON_DEPTH_LIMIT]; /* Keeps the stack of nested JSON structures. */
|
||||
int stack_p; /* The 'stack' pointer. */
|
||||
volatile uchar *killed_ptr;
|
||||
} json_engine_t;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user