Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a0b11b90
Commit
a0b11b90
authored
Jun 02, 2016
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove btr_search_n_succ and btr_search_n_hash_fail counters
parent
54332b27
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
40 deletions
+0
-40
storage/innobase/btr/btr0sea.cc
storage/innobase/btr/btr0sea.cc
+0
-14
storage/innobase/include/btr0sea.h
storage/innobase/include/btr0sea.h
+0
-7
storage/xtradb/btr/btr0sea.cc
storage/xtradb/btr/btr0sea.cc
+0
-12
storage/xtradb/include/btr0sea.h
storage/xtradb/include/btr0sea.h
+0
-7
No files found.
storage/innobase/btr/btr0sea.cc
View file @
a0b11b90
...
...
@@ -50,13 +50,6 @@ UNIV_INTERN char btr_search_enabled = TRUE;
/** A dummy variable to fool the compiler */
UNIV_INTERN
ulint
btr_search_this_is_zero
=
0
;
#ifdef UNIV_SEARCH_PERF_STAT
/** Number of successful adaptive hash index lookups */
UNIV_INTERN
ulint
btr_search_n_succ
=
0
;
/** Number of failed adaptive hash index lookups */
UNIV_INTERN
ulint
btr_search_n_hash_fail
=
0
;
#endif
/* UNIV_SEARCH_PERF_STAT */
/** padding to prevent other memory update
hotspots from residing on the same memory
cache line as btr_search_latch */
...
...
@@ -651,10 +644,6 @@ btr_search_info_update_slow(
if
(
cursor
->
flag
==
BTR_CUR_HASH_FAIL
)
{
/* Update the hash node reference, if appropriate */
#ifdef UNIV_SEARCH_PERF_STAT
btr_search_n_hash_fail
++
;
#endif
/* UNIV_SEARCH_PERF_STAT */
rw_lock_x_lock
(
&
btr_search_latch
);
btr_search_update_hash_ref
(
info
,
block
,
cursor
);
...
...
@@ -1010,9 +999,6 @@ btr_search_guess_on_hash(
#endif
info
->
last_hash_succ
=
TRUE
;
#ifdef UNIV_SEARCH_PERF_STAT
btr_search_n_succ
++
;
#endif
if
(
UNIV_LIKELY
(
!
has_search_latch
)
&&
buf_page_peek_if_too_old
(
&
block
->
page
))
{
...
...
storage/innobase/include/btr0sea.h
View file @
a0b11b90
...
...
@@ -256,13 +256,6 @@ struct btr_search_sys_t{
/** The adaptive hash index */
extern
btr_search_sys_t
*
btr_search_sys
;
#ifdef UNIV_SEARCH_PERF_STAT
/** Number of successful adaptive hash index lookups */
extern
ulint
btr_search_n_succ
;
/** Number of failed adaptive hash index lookups */
extern
ulint
btr_search_n_hash_fail
;
#endif
/* UNIV_SEARCH_PERF_STAT */
/** After change in n_fields or n_bytes in info, this many rounds are waited
before starting the hash analysis again: this is to save CPU time when there
is no hope in building a hash index. */
...
...
storage/xtradb/btr/btr0sea.cc
View file @
a0b11b90
...
...
@@ -53,13 +53,6 @@ UNIV_INTERN ulint btr_search_index_num;
/** A dummy variable to fool the compiler */
UNIV_INTERN
ulint
btr_search_this_is_zero
=
0
;
#ifdef UNIV_SEARCH_PERF_STAT
/** Number of successful adaptive hash index lookups */
UNIV_INTERN
ulint
btr_search_n_succ
=
0
;
/** Number of failed adaptive hash index lookups */
UNIV_INTERN
ulint
btr_search_n_hash_fail
=
0
;
#endif
/* UNIV_SEARCH_PERF_STAT */
/** padding to prevent other memory update
hotspots from residing on the same memory
cache line as btr_search_latch */
...
...
@@ -698,10 +691,6 @@ btr_search_info_update_slow(
if
(
cursor
->
flag
==
BTR_CUR_HASH_FAIL
)
{
/* Update the hash node reference, if appropriate */
#ifdef UNIV_SEARCH_PERF_STAT
btr_search_n_hash_fail
++
;
#endif
/* UNIV_SEARCH_PERF_STAT */
rw_lock_x_lock
(
btr_search_get_latch
(
cursor
->
index
));
btr_search_update_hash_ref
(
info
,
block
,
cursor
);
...
...
@@ -1059,7 +1048,6 @@ btr_search_guess_on_hash(
info
->
last_hash_succ
=
TRUE
;
#ifdef UNIV_SEARCH_PERF_STAT
btr_search_n_succ
++
;
#endif
if
(
UNIV_LIKELY
(
!
has_search_latch
)
&&
buf_page_peek_if_too_old
(
&
block
->
page
))
{
...
...
storage/xtradb/include/btr0sea.h
View file @
a0b11b90
...
...
@@ -332,13 +332,6 @@ struct btr_search_sys_t{
/** The adaptive hash index */
extern
btr_search_sys_t
*
btr_search_sys
;
#ifdef UNIV_SEARCH_PERF_STAT
/** Number of successful adaptive hash index lookups */
extern
ulint
btr_search_n_succ
;
/** Number of failed adaptive hash index lookups */
extern
ulint
btr_search_n_hash_fail
;
#endif
/* UNIV_SEARCH_PERF_STAT */
/** After change in n_fields or n_bytes in info, this many rounds are waited
before starting the hash analysis again: this is to save CPU time when there
is no hope in building a hash index. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment