summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2019-09-11 16:02:41 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2019-09-11 16:02:41 +0530
commitdf4dee4b84ddc34799fa3a9648c142f12564597f (patch)
treeabd277e5896c4a4fff9c2495580cfe4f970750d0
parentf7fe51f126043899d024a60f3f983d7b9be400ae (diff)
downloadmariadb-git-df4dee4b84ddc34799fa3a9648c142f12564597f.tar.gz
MDEV-17939 Assertion `++loop_count < 2' failed in trx_undo_report_rename
- During trx_undo_report_rename(), InnoDB can fail to write undo log for it if undo log doesn't fit in the undo page. In that case, InnoDB adds one more undo log page and retry to write the rename undo log. But the assert is wrong and it doesn't allow to fail even for one time.
-rw-r--r--storage/innobase/trx/trx0rec.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/trx/trx0rec.cc b/storage/innobase/trx/trx0rec.cc
index 821da9abd55..3bf5e1d6fcf 100644
--- a/storage/innobase/trx/trx0rec.cc
+++ b/storage/innobase/trx/trx0rec.cc
@@ -1953,7 +1953,7 @@ dberr_t trx_undo_report_rename(trx_t* trx, const dict_table_t* table)
ut_ad((err == DB_SUCCESS) == !!block);
for (ut_d(int loop_count = 0); block;) {
- ut_ad(++loop_count < 2);
+ ut_ad(loop_count++ < 2);
buf_block_dbg_add_level(block, SYNC_TRX_UNDO_PAGE);
ut_ad(undo->last_page_no == block->page.id.page_no());