Commit 9a7007b3 authored by marko's avatar marko

branches/zip: struct mtr_struct: Remove the unused field magic_n

unless UNIV_DEBUG is defined.  mtr->magic_n is only assigned to
and checked in UNIV_DEBUG builds.
parent 4d97bedb
...@@ -344,10 +344,14 @@ struct mtr_struct{ ...@@ -344,10 +344,14 @@ struct mtr_struct{
this mtr */ this mtr */
ib_uint64_t end_lsn;/* end lsn of the possible log entry for ib_uint64_t end_lsn;/* end lsn of the possible log entry for
this mtr */ this mtr */
#ifdef UNIV_DEBUG
ulint magic_n; ulint magic_n;
#endif /* UNIV_DEBUG */
}; };
#define MTR_MAGIC_N 54551 #ifdef UNIV_DEBUG
# define MTR_MAGIC_N 54551
#endif /* UNIV_DEBUG */
#define MTR_ACTIVE 12231 #define MTR_ACTIVE 12231
#define MTR_COMMITTING 56456 #define MTR_COMMITTING 56456
......
...@@ -28,10 +28,9 @@ mtr_start( ...@@ -28,10 +28,9 @@ mtr_start(
mtr->modifications = FALSE; mtr->modifications = FALSE;
mtr->n_log_recs = 0; mtr->n_log_recs = 0;
#ifdef UNIV_DEBUG ut_d(mtr->state = MTR_ACTIVE);
mtr->state = MTR_ACTIVE; ut_d(mtr->magic_n = MTR_MAGIC_N);
mtr->magic_n = MTR_MAGIC_N;
#endif
return(mtr); return(mtr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment