MDEV-24693 LeakSanitizer: detected memory leaks in mem_heap_create_block_func...

MDEV-24693 LeakSanitizer: detected memory leaks in mem_heap_create_block_func / fts_optimize_create_msg

- This issue is caused by the commit bf1f9b59
(MDEV-24638). Delay the creation of SYNC message in
fts_optimize_request_sync_table. So that InnoDB can avoid creating
the message if the table already has SYNC message in fts_optimize_wq queue
parent 30379d90
......@@ -2654,8 +2654,6 @@ fts_optimize_request_sync_table(
return;
}
fts_msg_t* msg = fts_optimize_create_msg(FTS_MSG_SYNC_TABLE, table);
mutex_enter(&fts_optimize_wq->mutex);
if (table->fts->sync_message) {
......@@ -2665,6 +2663,8 @@ fts_optimize_request_sync_table(
return;
}
fts_msg_t* msg = fts_optimize_create_msg(FTS_MSG_SYNC_TABLE, table);
add_msg(msg, true);
table->fts->sync_message = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment