From 6feb74c4b21143ece69bcc1e04474a528f122cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Fri, 5 Jan 2018 22:50:28 +0200 Subject: [PATCH] row_upd_rec_in_place(): Relax a debug assertion --- storage/innobase/row/row0upd.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/storage/innobase/row/row0upd.cc b/storage/innobase/row/row0upd.cc index 8e59fe7f113..c2ae828b1e0 100644 --- a/storage/innobase/row/row0upd.cc +++ b/storage/innobase/row/row0upd.cc @@ -714,9 +714,19 @@ row_upd_rec_in_place( case REC_STATUS_COLUMNS_ADDED: ut_ad(index->is_instant()); break; + case REC_STATUS_NODE_PTR: + if (recv_recovery_is_on() + && fil_page_get_type(page_align(rec)) + == FIL_PAGE_RTREE) { + /* The function rtr_update_mbr_field_in_place() + is generating MLOG_COMP_REC_UPDATE_IN_PLACE + and MLOG_REC_UPDATE_IN_PLACE records for + node pointer pages. */ + break; + } + /* fall through */ case REC_STATUS_INFIMUM: case REC_STATUS_SUPREMUM: - case REC_STATUS_NODE_PTR: ut_ad(!"wrong record status in update"); } #endif /* UNIV_DEBUG */