1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-23294 Segfault or assertion upon MyISAM repair

When computing vcol expression some items use current_thd and that was
not set in MyISAM repair thread. Since all the repair threads belong
to one connection and items should not write into THD we can utilize
table THD for that.
This commit is contained in:
Aleksey Midenkov
2023-11-09 16:26:11 +03:00
parent 74883f5e2f
commit ebb6f57568
5 changed files with 83 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ typedef struct st_handler_check_param
uint progress_counter; /* How often to call _report_progress() */
ulonglong progress, max_progress;
void (*init_fix_record)(void *);
int (*fix_record)(struct st_myisam_info *info, uchar *record, int keynum);
mysql_mutex_t print_msg_mutex;