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
16ac732c
Commit
16ac732c
authored
Mar 31, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Remove unused hash table code and parameters
parent
3476db87
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
69 deletions
+5
-69
innobase/ha/ha0ha.c
innobase/ha/ha0ha.c
+2
-29
innobase/include/ha0ha.ic
innobase/include/ha0ha.ic
+3
-40
No files found.
innobase/ha/ha0ha.c
View file @
16ac732c
...
...
@@ -205,7 +205,7 @@ ha_remove_all_nodes_to_page(
node
=
ha_chain_get_first
(
table
,
fold
);
}
else
{
node
=
ha_chain_get_next
(
table
,
node
);
node
=
ha_chain_get_next
(
node
);
}
}
...
...
@@ -216,7 +216,7 @@ ha_remove_all_nodes_to_page(
while
(
node
)
{
ut_a
(
buf_frame_align
(
ha_node_get_data
(
node
))
!=
page
);
node
=
ha_chain_get_next
(
table
,
node
);
node
=
ha_chain_get_next
(
node
);
}
}
...
...
@@ -269,12 +269,6 @@ ha_print_info(
hash_table_t
*
table
)
/* in: hash table */
{
hash_cell_t
*
cell
;
/*
ha_node_t* node;
ulint len = 0;
ulint max_len = 0;
ulint nodes = 0;
*/
ulint
cells
=
0
;
ulint
n_bufs
;
ulint
i
;
...
...
@@ -290,27 +284,6 @@ ha_print_info(
if
(
cell
->
node
)
{
cells
++
;
/*
len = 0;
node = cell->node;
for (;;) {
len++;
nodes++;
if (ha_chain_get_next(table, node) == NULL) {
break;
}
node = node->next;
}
if (len > max_len) {
max_len = len;
}
*/
}
}
...
...
innobase/include/ha0ha.ic
View file @
16ac732c
...
...
@@ -49,11 +49,8 @@ ha_node_t*
ha_chain_get_next(
/*==============*/
/* out: next node, NULL if none */
hash_table_t* table __attribute__((unused)), /* in: hash table */
ha_node_t* node) /* in: hash chain node */
{
ut_ad(table);
return(node->next);
}
...
...
@@ -96,7 +93,7 @@ ha_search(
return(node);
}
node = ha_chain_get_next(
table,
node);
node = ha_chain_get_next(node);
}
return(NULL);
...
...
@@ -128,41 +125,7 @@ ha_search_and_get_data(
return(node->data);
}
node = ha_chain_get_next(table, node);
}
return(NULL);
}
/*****************************************************************
Returns the next matching hash table node in chain. */
UNIV_INLINE
ha_node_t*
ha_next(
/*====*/
/* out: pointer to the next hash table node
in chain with the fold value, NULL if not
found */
hash_table_t* table, /* in: hash table */
ha_node_t* node) /* in: hash table node */
{
ulint fold;
fold = node->fold;
#ifdef UNIV_SYNC_DEBUG
ut_ad(!table->mutexes || mutex_own(hash_get_mutex(table, fold)));
#endif /* UNIV_SYNC_DEBUG */
node = ha_chain_get_next(table, node);
while (node) {
if (node->fold == fold) {
return(node);
}
node = ha_chain_get_next(table, node);
node = ha_chain_get_next(node);
}
return(NULL);
...
...
@@ -194,7 +157,7 @@ ha_search_with_data(
return(node);
}
node = ha_chain_get_next(
table,
node);
node = ha_chain_get_next(node);
}
return(NULL);
...
...
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