mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-14238 Bogus assertion on row_get_rec_trx_id()
page_zip_write_rec(): Do not attempt to access a non-existing DB_TRX_ID column when writing a record to a non-leaf page.
This commit is contained in:
parent
8411a8ff60
commit
e4da20d438
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
||||
Copyright (c) 2012, Facebook Inc.
|
||||
Copyright (c) 2014, 2017, MariaDB Corporation.
|
||||
Copyright (c) 2014, 2018, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
@ -3714,8 +3714,9 @@ page_zip_write_rec(
|
|||
/* Copy the delete mark. */
|
||||
if (rec_get_deleted_flag(rec, TRUE)) {
|
||||
/* In delete-marked records, DB_TRX_ID must
|
||||
always refer to an existing undo log record. */
|
||||
ut_ad(!dict_index_is_clust(index)
|
||||
always refer to an existing undo log record.
|
||||
On non-leaf pages, the delete-mark flag is garbage. */
|
||||
ut_ad(!index->is_primary() || !page_is_leaf(page)
|
||||
|| row_get_rec_trx_id(rec, index, offsets));
|
||||
*slot |= PAGE_ZIP_DIR_SLOT_DEL >> 8;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue