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
ca96ac53
Commit
ca96ac53
authored
Sep 02, 2009
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fix. Observe C declaration placement rules.
parent
cdea23eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
mysys/mf_iocache.c
mysys/mf_iocache.c
+9
-7
No files found.
mysys/mf_iocache.c
View file @
ca96ac53
...
...
@@ -228,18 +228,20 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
for
(;;)
{
uint
buffer_block
;
/*
Unset MY_WAIT_IF_FULL bit if it is set, to prevent conflict with
MY_ZEROFILL.
*/
myf
flags
=
(
myf
)
(
cache_myflags
&
~
(
MY_WME
|
MY_WAIT_IF_FULL
));
if
(
cachesize
<
min_cache
)
cachesize
=
min_cache
;
buffer_block
=
cachesize
;
if
(
type
==
SEQ_READ_APPEND
)
buffer_block
*=
2
;
/*
Unset MY_WAIT_IF_FULL bit if it is set, to prevent conflict with
MY_ZEROFILL.
*/
myf
flag
=
MYF
((
cache_myflags
&
~
(
MY_WME
|
MY_WAIT_IF_FULL
))
|
(
cachesize
==
min_cache
?
MY_WME
:
0
));
if
((
info
->
buffer
=
(
byte
*
)
my_malloc
(
buffer_block
,
flag
))
!=
0
)
if
(
cachesize
==
min_cache
)
flags
|=
(
myf
)
MY_WME
;
if
((
info
->
buffer
=
(
byte
*
)
my_malloc
(
buffer_block
,
flags
))
!=
0
)
{
info
->
write_buffer
=
info
->
buffer
;
if
(
type
==
SEQ_READ_APPEND
)
...
...
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