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
53c8af88
Commit
53c8af88
authored
Jul 06, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-4.1-engines
into sita.local:/Users/tsmith/m/bk/maint/41
parents
1b827e03
46943ab6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
mysys/hash.c
mysys/hash.c
+19
-0
No files found.
mysys/hash.c
View file @
53c8af88
...
...
@@ -572,6 +572,25 @@ my_bool hash_update(HASH *hash,byte *record,byte *old_key,uint old_key_length)
previous
->
next
=
pos
->
next
;
/* unlink pos */
/* Move data to correct position */
if
(
new_index
==
empty
)
{
/*
At this point record is unlinked from the old chain, thus it holds
random position. By the chance this position is equal to position
for the first element in the new chain. That means updated record
is the only record in the new chain.
*/
if
(
empty
!=
idx
)
{
/*
Record was moved while unlinking it from the old chain.
Copy data to a new position.
*/
data
[
empty
]
=
org_link
;
}
data
[
empty
].
next
=
NO_RECORD
;
DBUG_RETURN
(
0
);
}
pos
=
data
+
new_index
;
new_pos_index
=
hash_rec_mask
(
hash
,
pos
,
blength
,
records
);
if
(
new_index
!=
new_pos_index
)
...
...
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