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
c0afbd68
Commit
c0afbd68
authored
Aug 23, 2007
by
vasil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Use hash_table_clear() to initialize the array instead of
for()-loop. Suggested by: Sunny Approved by: Marko
parent
ab2e2d0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
ha/hash0hash.c
ha/hash0hash.c
+1
-6
include/hash0hash.h
include/hash0hash.h
+1
-1
include/hash0hash.ic
include/hash0hash.ic
+1
-1
No files found.
ha/hash0hash.c
View file @
c0afbd68
...
...
@@ -103,12 +103,7 @@ hash_create(
table
->
magic_n
=
HASH_TABLE_MAGIC_N
;
/* Initialize the cell array */
for
(
i
=
0
;
i
<
prime
;
i
++
)
{
cell
=
hash_get_nth_cell
(
table
,
i
);
cell
->
node
=
NULL
;
}
hash_table_clear
(
table
);
return
(
table
);
}
...
...
include/hash0hash.h
View file @
c0afbd68
...
...
@@ -180,7 +180,7 @@ hash_get_nth_cell(
ulint
n
);
/* in: cell index */
/*****************************************************************
Clears a hash table so that all the cells become empty
again
. */
Clears a hash table so that all the cells become empty. */
UNIV_INLINE
void
hash_table_clear
(
...
...
include/hash0hash.ic
View file @
c0afbd68
...
...
@@ -24,7 +24,7 @@ hash_get_nth_cell(
}
/*****************************************************************
Clears a hash table so that all the cells become empty
again
. */
Clears a hash table so that all the cells become empty. */
UNIV_INLINE
void
hash_table_clear(
...
...
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