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
69df00b4
Commit
69df00b4
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
0105a8e9
9fb71fec
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 @
69df00b4
...
...
@@ -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