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
007bb37a
Commit
007bb37a
authored
Mar 19, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21962: Fix a bug in buf_pool_t::clear_hash_index()
parent
f3a8ca9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
storage/innobase/btr/btr0sea.cc
storage/innobase/btr/btr0sea.cc
+1
-3
storage/innobase/buf/buf0buf.cc
storage/innobase/buf/buf0buf.cc
+2
-3
No files found.
storage/innobase/btr/btr0sea.cc
View file @
007bb37a
...
...
@@ -840,7 +840,6 @@ btr_search_failure(btr_search_t* info, btr_cur_t* cursor)
info
->
last_hash_succ
=
FALSE
;
}
#ifdef BTR_CUR_HASH_ADAPT
/** Clear the adaptive hash index on all pages in the buffer pool. */
inline
void
buf_pool_t
::
clear_hash_index
()
{
...
...
@@ -848,7 +847,7 @@ inline void buf_pool_t::clear_hash_index()
ut_ad
(
!
resizing
);
ut_ad
(
!
btr_search_enabled
);
for
(
chunk_t
*
chunk
=
chunks
+
n_chunks
;
--
chunk
!=
chunks
;
)
for
(
chunk_t
*
chunk
=
chunks
+
n_chunks
;
chunk
--
!=
chunks
;
)
{
for
(
buf_block_t
*
block
=
chunk
->
blocks
,
*
const
end
=
block
+
chunk
->
size
;
block
!=
end
;
block
++
)
...
...
@@ -882,7 +881,6 @@ inline void buf_pool_t::clear_hash_index()
}
}
}
#endif
/* BTR_CUR_HASH_ADAPT */
/** Get a buffer block from an adaptive hash index pointer.
This function does not return if the block is not identified.
...
...
storage/innobase/buf/buf0buf.cc
View file @
007bb37a
...
...
@@ -2135,14 +2135,13 @@ inline void buf_pool_t::resize()
#ifdef BTR_CUR_HASH_ADAPT
/* disable AHI if needed */
bool
btr_search_disabled
=
false
;
const
bool
btr_search_disabled
=
btr_search_enabled
;
buf_resize_status
(
"Disabling adaptive hash index."
);
btr_search_s_lock_all
();
if
(
btr_search_
en
abled
)
{
if
(
btr_search_
dis
abled
)
{
btr_search_s_unlock_all
();
btr_search_disabled
=
true
;
}
else
{
btr_search_s_unlock_all
();
}
...
...
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