Commit 7812cd87 authored by unknown's avatar unknown
Browse files

InnoDB: Remove some debug variables unless UNIV_SEARCH_PERF_STAT is defined


innobase/btr/btr0sea.c:
  Remove variable btr_search_n_succ unless #ifdef UNIV_SEARCH_PERF_STAT
innobase/include/btr0sea.h:
  Remove variable btr_search_n_succ unless #ifdef UNIV_SEARCH_PERF_STAT
innobase/page/page0cur.c:
  Make page_rnd a static variable
  Remove variable page_cur_short_succ unless #ifdef UNIV_SEARCH_PERF_STAT
innobase/include/page0cur.h:
  Remove variable page_cur_short_succ unless #ifdef UNIV_SEARCH_PERF_STAT
parent 8d2bb926
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,7 +22,9 @@ Created 2/17/1996 Heikki Tuuri
ulint	btr_search_this_is_zero = 0;	/* A dummy variable to fool the
					compiler */

#ifdef UNIV_SEARCH_PERF_STAT
ulint	btr_search_n_succ	= 0;
#endif /* UNIV_SEARCH_PERF_STAT */
ulint	btr_search_n_hash_fail	= 0;

byte	btr_sea_pad1[64];	/* padding to prevent other memory update
+2 −0
Original line number Diff line number Diff line
@@ -214,7 +214,9 @@ extern rw_lock_t* btr_search_latch_temp;

#define btr_search_latch	(*btr_search_latch_temp)

#ifdef UNIV_SEARCH_PERF_STAT
extern ulint	btr_search_n_succ;
#endif /* UNIV_SEARCH_PERF_STAT */
extern ulint	btr_search_n_hash_fail;

/* After change in n_fields or n_bytes in info, this many rounds are waited
+4 −1
Original line number Diff line number Diff line
@@ -32,8 +32,11 @@ Created 10/4/1994 Heikki Tuuri
				 which extend it */
#define	PAGE_CUR_DBG	6


#ifdef PAGE_CUR_ADAPT
# ifdef UNIV_SEARCH_PERF_STAT
extern ulint	page_cur_short_succ;
# endif /* UNIV_SEARCH_PERF_STAT */
#endif /* PAGE_CUR_ADAPT */

/*************************************************************
Gets pointer to the page frame where the cursor is positioned. */
+4 −3
Original line number Diff line number Diff line
@@ -16,11 +16,12 @@ Created 10/4/1994 Heikki Tuuri
#include "log0recv.h"
#include "rem0cmp.h"

ulint	page_cur_short_succ	= 0;

ulint	page_rnd	= 976722341;
static ulint	page_rnd	= 976722341;

#ifdef PAGE_CUR_ADAPT
# ifdef UNIV_SEARCH_PERF_STAT
ulint	page_cur_short_succ	= 0;
# endif /* UNIV_SEARCH_PERF_STAT */

/********************************************************************
Tries a search shortcut based on the last insert. */