diff options
author | unknown <marko@hundin.mysql.fi> | 2004-03-16 18:55:44 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-03-16 18:55:44 +0200 |
commit | 7812cd87378a3d7c63bf45dfbc796ee4b61898ab (patch) | |
tree | 277f954070cd694be818e3ca8ca3f9f4da7ee578 /innobase/page | |
parent | 8d2bb926fbe5431faf2ae768ecad6240954295fd (diff) | |
download | mariadb-git-7812cd87378a3d7c63bf45dfbc796ee4b61898ab.tar.gz |
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
Diffstat (limited to 'innobase/page')
-rw-r--r-- | innobase/page/page0cur.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/innobase/page/page0cur.c b/innobase/page/page0cur.c index b08efacf43a..890452cfceb 100644 --- a/innobase/page/page0cur.c +++ b/innobase/page/page0cur.c @@ -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. */ |