summaryrefslogtreecommitdiff
path: root/storage/innobase/include/row0upd.ic
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/row0upd.ic')
-rw-r--r--storage/innobase/include/row0upd.ic5
1 files changed, 2 insertions, 3 deletions
diff --git a/storage/innobase/include/row0upd.ic b/storage/innobase/include/row0upd.ic
index 364c876ecc7..5e43a272388 100644
--- a/storage/innobase/include/row0upd.ic
+++ b/storage/innobase/include/row0upd.ic
@@ -181,9 +181,8 @@ row_upd_rec_sys_fields(
offset = row_get_trx_id_offset(index, offsets);
}
-#if DATA_TRX_ID + 1 != DATA_ROLL_PTR
-# error "DATA_TRX_ID + 1 != DATA_ROLL_PTR"
-#endif
+ compile_time_assert(DATA_TRX_ID + 1 == DATA_ROLL_PTR);
+
/* During IMPORT the trx id in the record can be in the
future, if the .ibd file is being imported from another
instance. During IMPORT roll_ptr will be 0. */