Commit e6c8f9fc authored by marko's avatar marko

mtr_print(), mtr_memo_contains(): Disable unless #ifdef UNIV_DEBUG.

parent 82b74bc1
...@@ -265,6 +265,7 @@ mtr_memo_release( ...@@ -265,6 +265,7 @@ mtr_memo_release(
mtr_t* mtr, /* in: mtr */ mtr_t* mtr, /* in: mtr */
void* object, /* in: object */ void* object, /* in: object */
ulint type); /* in: object type: MTR_MEMO_S_LOCK, ... */ ulint type); /* in: object type: MTR_MEMO_S_LOCK, ... */
#ifdef UNIV_DEBUG
/************************************************************** /**************************************************************
Checks if memo contains the given item. */ Checks if memo contains the given item. */
UNIV_INLINE UNIV_INLINE
...@@ -282,6 +283,7 @@ void ...@@ -282,6 +283,7 @@ void
mtr_print( mtr_print(
/*======*/ /*======*/
mtr_t* mtr); /* in: mtr */ mtr_t* mtr); /* in: mtr */
#endif /* UNIV_DEBUG */
/*######################################################################*/ /*######################################################################*/
#define MTR_BUF_MEMO_SIZE 200 /* number of slots in memo */ #define MTR_BUF_MEMO_SIZE 200 /* number of slots in memo */
......
...@@ -113,6 +113,7 @@ mtr_release_s_latch_at_savepoint( ...@@ -113,6 +113,7 @@ mtr_release_s_latch_at_savepoint(
slot->object = NULL; slot->object = NULL;
} }
#ifdef UNIV_DEBUG
/************************************************************** /**************************************************************
Checks if memo contains the given item. */ Checks if memo contains the given item. */
UNIV_INLINE UNIV_INLINE
...@@ -148,6 +149,7 @@ mtr_memo_contains( ...@@ -148,6 +149,7 @@ mtr_memo_contains(
return(FALSE); return(FALSE);
} }
#endif /* UNIV_DEBUG */
/******************************************************************* /*******************************************************************
Returns the log object of a mini-transaction buffer. */ Returns the log object of a mini-transaction buffer. */
......
...@@ -318,6 +318,7 @@ mtr_read_dulint( ...@@ -318,6 +318,7 @@ mtr_read_dulint(
return(mach_read_from_8(ptr)); return(mach_read_from_8(ptr));
} }
#ifdef UNIV_DEBUG
/************************************************************* /*************************************************************
Prints info of an mtr handle. */ Prints info of an mtr handle. */
...@@ -332,3 +333,4 @@ mtr_print( ...@@ -332,3 +333,4 @@ mtr_print(
(ulong) dyn_array_get_data_size(&(mtr->memo)), (ulong) dyn_array_get_data_size(&(mtr->memo)),
(ulong) dyn_array_get_data_size(&(mtr->log))); (ulong) dyn_array_get_data_size(&(mtr->log)));
} }
#endif /* UNIV_DEBUG */
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