Fixed an issue where cur_cmd_cmnt was shared across threads

v3.0_mysql_monitor_cur_cmd_cmnt_fix
Rahim Kanji 2 months ago
parent febb650abb
commit 91e20648f2

@ -519,7 +519,7 @@ void copy_next_char(shared_st* shared_st, const options* opts) {
inc_proc_pos(shared_st);
}
static char cur_cmd_cmnt[FIRST_COMMENT_MAX_LENGTH];
static thread_local char cur_cmd_cmnt[FIRST_COMMENT_MAX_LENGTH];
/**
* @brief Safer version of 'is_digit_string' performing boundary checks.

Loading…
Cancel
Save