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
ce0678f6
Commit
ce0678f6
authored
May 22, 2018
by
Daniel Black
Committed by
Sergey Vojtovich
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hash (storage): hp_hashnr is local
Remove 'register' quantifer from args too.
parent
7fa67e39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
storage/heap/heapdef.h
storage/heap/heapdef.h
+0
-1
storage/heap/hp_hash.c
storage/heap/hp_hash.c
+2
-1
No files found.
storage/heap/heapdef.h
View file @
ce0678f6
...
...
@@ -81,7 +81,6 @@ extern uchar *hp_search(HP_INFO *info,HP_KEYDEF *keyinfo,const uchar *key,
uint
nextflag
);
extern
uchar
*
hp_search_next
(
HP_INFO
*
info
,
HP_KEYDEF
*
keyinfo
,
const
uchar
*
key
,
HASH_INFO
*
pos
);
extern
ulong
hp_hashnr
(
HP_KEYDEF
*
keyinfo
,
const
uchar
*
key
);
extern
ulong
hp_rec_hashnr
(
HP_KEYDEF
*
keyinfo
,
const
uchar
*
rec
);
extern
void
hp_movelink
(
HASH_INFO
*
pos
,
HASH_INFO
*
next_link
,
HASH_INFO
*
newlink
);
...
...
storage/heap/hp_hash.c
View file @
ce0678f6
...
...
@@ -19,6 +19,7 @@
#include "heapdef.h"
#include <m_ctype.h>
static
ulong
hp_hashnr
(
HP_KEYDEF
*
keydef
,
const
uchar
*
key
);
/*
Find out how many rows there is in the given range
...
...
@@ -211,7 +212,7 @@ void hp_movelink(HASH_INFO *pos, HASH_INFO *next_link, HASH_INFO *newlink)
/* Calc hashvalue for a key */
ulong
hp_hashnr
(
register
HP_KEYDEF
*
keydef
,
register
const
uchar
*
key
)
static
ulong
hp_hashnr
(
HP_KEYDEF
*
keydef
,
const
uchar
*
key
)
{
/*register*/
ulong
nr
=
1
,
nr2
=
4
;
...
...
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