Skip to content

Commit faa64a5

Browse files
authored
Merge pull request #5259 from sysown/v3.0_mysql_monitor_cur_cmd_cmnt_fix
Fix: Make cur_cmd_cmnt thread-safe
2 parents 0b85700 + 91e2064 commit faa64a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/c_tokenizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ void copy_next_char(shared_st* shared_st, const options* opts) {
519519
inc_proc_pos(shared_st);
520520
}
521521

522-
static char cur_cmd_cmnt[FIRST_COMMENT_MAX_LENGTH];
522+
static thread_local char cur_cmd_cmnt[FIRST_COMMENT_MAX_LENGTH];
523523

524524
/**
525525
* @brief Safer version of 'is_digit_string' performing boundary checks.

0 commit comments

Comments
 (0)