summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-03-21 09:30:37 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-03-21 09:30:37 +0200
commit5c1720f8afac7ecaa12ec3da20bfc1ca15343664 (patch)
tree4503e411b929e150ac67f9d2415346160623412a /extra
parentdcc4458aa00e6a7f67edb73833dc2013ccfc5509 (diff)
downloadmariadb-git-5c1720f8afac7ecaa12ec3da20bfc1ca15343664.tar.gz
Remove unused variables from non-debug build
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index b9b3c653edc..c421aab451e 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -3285,7 +3285,7 @@ static dberr_t xb_assign_undo_space_start()
byte* page;
bool ret;
dberr_t error = DB_SUCCESS;
- ulint space, page_no;
+ ulint space;
int n_retries = 5;
if (srv_undo_tablespaces == 0) {
@@ -3326,10 +3326,10 @@ retry:
/* 0th slot always points to system tablespace.
1st slot should point to first undotablespace which is minimum. */
- page_no = mach_read_ulint(TRX_SYS + TRX_SYS_RSEGS
- + TRX_SYS_RSEG_SLOT_SIZE
- + TRX_SYS_RSEG_PAGE_NO + page, MLOG_4BYTES);
- ut_ad(page_no != FIL_NULL);
+ ut_ad(mach_read_from_4(TRX_SYS + TRX_SYS_RSEGS
+ + TRX_SYS_RSEG_SLOT_SIZE
+ + TRX_SYS_RSEG_PAGE_NO + page)
+ != FIL_NULL);
space = mach_read_ulint(TRX_SYS + TRX_SYS_RSEGS
+ TRX_SYS_RSEG_SLOT_SIZE