MDEV-6076: Fix a broken assertion.

This commit is contained in:
Marko Mäkelä 2017-01-16 13:57:39 +02:00
parent 1ba7234b21
commit bb109aeea3

View file

@ -480,7 +480,7 @@ page_create_zip(
/* PAGE_MAX_TRX_ID or PAGE_ROOT_AUTO_INC are always 0 for
temporary tables. */
ut_ad(!dict_table_is_temporary(index->table) || max_trx_id == 0);
ut_ad(max_trx_id == 0 || !dict_table_is_temporary(index->table));
/* In secondary indexes and the change buffer, PAGE_MAX_TRX_ID
must be zero on non-leaf pages. max_trx_id can be 0 when the
index consists of an empty root (leaf) page. */