diff options
-rw-r--r-- | storage/innobase/trx/trx0rseg.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/storage/innobase/trx/trx0rseg.cc b/storage/innobase/trx/trx0rseg.cc index 1d71551da70..0e60f291665 100644 --- a/storage/innobase/trx/trx0rseg.cc +++ b/storage/innobase/trx/trx0rseg.cc @@ -282,10 +282,9 @@ trx_rseg_create(ulint space_id) /* To obey the latching order, acquire the file space x-latch before the trx_sys->mutex. */ -#ifdef UNIV_DEBUG - const fil_space_t* space = -#endif /* UNIV_DEBUG */ - mtr_x_lock_space(space_id, &mtr); + + const fil_space_t* space = mtr_x_lock_space(space_id, &mtr); + ut_ad(space->purpose == FIL_TYPE_TABLESPACE); ulint slot_no = trx_sysf_rseg_find_free(&mtr); |