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
0d0bf207
Commit
0d0bf207
authored
Nov 18, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small change to make key cache code cleaer
parent
5563f67c
Changes
1
Show 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 @
0d0bf207
...
@@ -548,13 +548,14 @@ int flush_key_blocks(File file, enum flush_type type)
...
@@ -548,13 +548,14 @@ int flush_key_blocks(File file, enum flush_type type)
count
++
;
count
++
;
}
}
/* Only allocate a new buffer if its bigger than the one we have */
/* Only allocate a new buffer if its bigger than the one we have */
if
(
count
<=
FLUSH_CACHE
||
if
(
count
>
FLUSH_CACHE
)
!
(
cache
=
(
SEC_LINK
**
)
my_malloc
(
sizeof
(
SEC_LINK
*
)
*
count
,
MYF
(
0
))))
{
if
(
!
(
cache
=
(
SEC_LINK
**
)
my_malloc
(
sizeof
(
SEC_LINK
*
)
*
count
,
MYF
(
0
))))
{
{
cache
=
cache_buff
;
/* Fall back to safe buffer */
cache
=
cache_buff
;
/* Fall back to safe buffer */
count
=
FLUSH_CACHE
;
count
=
FLUSH_CACHE
;
}
}
end
=
cache
+
count
;
}
}
}
/* Go through the keys and write them to buffer to be flushed */
/* 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