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
b34d11f8
Commit
b34d11f8
authored
Nov 18, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql into mashka.mysql.fi:/home/my/mysql-3.23
parents
2ef5ec31
e41123b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
mysys/mf_keycache.c
mysys/mf_keycache.c
+6
-5
No files found.
mysys/mf_keycache.c
View file @
b34d11f8
...
...
@@ -548,13 +548,14 @@ int flush_key_blocks(File file, enum flush_type type)
count
++
;
}
/* Only allocate a new buffer if its bigger than the one we have */
if
(
count
<=
FLUSH_CACHE
||
!
(
cache
=
(
SEC_LINK
**
)
my_malloc
(
sizeof
(
SEC_LINK
*
)
*
count
,
MYF
(
0
))))
if
(
count
>
FLUSH_CACHE
)
{
cache
=
cache_buff
;
/* Fall back to safe buffer */
count
=
FLUSH_CACHE
;
if
(
!
(
cache
=
(
SEC_LINK
**
)
my_malloc
(
sizeof
(
SEC_LINK
*
)
*
count
,
MYF
(
0
))))
{
cache
=
cache_buff
;
/* Fall back to safe buffer */
count
=
FLUSH_CACHE
;
}
}
end
=
cache
+
count
;
}
/* Go through the keys and write them to buffer to be flushed */
...
...
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