diff --git a/log/log0recv.c b/log/log0recv.c index 0aff9fcd9bf..b060c9e6e24 100644 --- a/log/log0recv.c +++ b/log/log0recv.c @@ -2558,7 +2558,7 @@ recv_scan_log_recs( ut_ad(start_lsn % OS_FILE_LOG_BLOCK_SIZE == 0); ut_ad(len % OS_FILE_LOG_BLOCK_SIZE == 0); - ut_ad(len > 0); + ut_ad(len >= OS_FILE_LOG_BLOCK_SIZE); ut_a(store_to_hash <= TRUE); finished = FALSE; @@ -3264,6 +3264,8 @@ recv_recovery_from_checkpoint_finish(void) /* Drop partially created indexes. */ row_merge_drop_temp_indexes(); + /* Drop temporary tables. */ + row_mysql_drop_temp_tables(); #ifdef UNIV_SYNC_DEBUG /* Wait for a while so that created threads have time to suspend