summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2017-04-21 12:37:58 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2017-04-21 12:37:58 +0300
commit6ceb182cb89e154abe5b74770ef5bc220a168056 (patch)
tree68fad7a03da6df619d78aa33dc1bd39da8e93b58
parent6770b03e932af34c0fdd503df51c438e361d309d (diff)
downloadmariadb-git-bb-10.2-MDEV-11751.tar.gz
Fix compiler error on product build.bb-10.2-MDEV-11751
-rw-r--r--storage/innobase/trx/trx0rseg.cc7
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);