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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
05392a9d
Commit
05392a9d
authored
Nov 17, 2005
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port r53 from branches/5.0:
Make comments about buf_block_t::index more accurate.
parent
96cccd15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
btr/btr0sea.c
btr/btr0sea.c
+2
-1
include/buf0buf.h
include/buf0buf.h
+8
-6
No files found.
btr/btr0sea.c
View file @
05392a9d
...
@@ -889,7 +889,8 @@ Drops a page hash index. */
...
@@ -889,7 +889,8 @@ Drops a page hash index. */
void
void
btr_search_drop_page_hash_index
(
btr_search_drop_page_hash_index
(
/*============================*/
/*============================*/
page_t
*
page
)
/* in: index page, s- or x-latched */
page_t
*
page
)
/* in: index page, s- or x-latched, or an index page
for which we know that block->buf_fix_count == 0 */
{
{
hash_table_t
*
table
;
hash_table_t
*
table
;
buf_block_t
*
block
;
buf_block_t
*
block
;
...
...
include/buf0buf.h
View file @
05392a9d
...
@@ -831,7 +831,13 @@ struct buf_block_struct{
...
@@ -831,7 +831,13 @@ struct buf_block_struct{
records with the same prefix should be
records with the same prefix should be
indexed in the hash index */
indexed in the hash index */
/* The following 6 fields are protected by btr_search_latch: */
/* These 6 fields may only be modified when we have
an x-latch on btr_search_latch AND
a) we are holding an s-latch or x-latch on block->lock or
b) we know that block->buf_fix_count == 0.
An exception to this is when we init or create a page
in the buffer pool in buf0buf.c. */
ibool
is_hashed
;
/* TRUE if hash index has already been
ibool
is_hashed
;
/* TRUE if hash index has already been
built on this page; note that it does
built on this page; note that it does
...
@@ -849,11 +855,7 @@ struct buf_block_struct{
...
@@ -849,11 +855,7 @@ struct buf_block_struct{
BTR_SEARCH_RIGHT_SIDE in hash
BTR_SEARCH_RIGHT_SIDE in hash
indexing */
indexing */
dict_index_t
*
index
;
/* Index for which the adaptive
dict_index_t
*
index
;
/* Index for which the adaptive
hash index has been created.
hash index has been created. */
This field may only be modified
while holding an s-latch or x-latch
on block->lock and an x-latch on
btr_search_latch. */
/* 6. Debug fields */
/* 6. Debug fields */
#ifdef UNIV_SYNC_DEBUG
#ifdef UNIV_SYNC_DEBUG
rw_lock_t
debug_latch
;
/* in the debug version, each thread
rw_lock_t
debug_latch
;
/* in the debug version, each thread
...
...
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