mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
MDEV-34078 Memory leak in InnoDB purge with 32-column PRIMARY KEY
row_purge_reset_trx_id(): Reserve large enough offsets for accomodating the maximum width PRIMARY KEY followed by DB_TRX_ID,DB_ROLL_PTR. Reviewed by: Thirunarayanan Balathandayuthapani
This commit is contained in:
parent
8d810e9426
commit
464055fe65
3 changed files with 52 additions and 2 deletions
|
|
@ -678,7 +678,7 @@ static void row_purge_reset_trx_id(purge_node_t* node, mtr_t* mtr)
|
|||
mem_heap_t* heap = NULL;
|
||||
/* Reserve enough offsets for the PRIMARY KEY and 2 columns
|
||||
so that we can access DB_TRX_ID, DB_ROLL_PTR. */
|
||||
rec_offs offsets_[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 2];
|
||||
rec_offs offsets_[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 3];
|
||||
rec_offs_init(offsets_);
|
||||
rec_offs* offsets = rec_get_offsets(
|
||||
rec, index, offsets_, index->n_core_fields,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue