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
0b6ff112
Commit
0b6ff112
authored
Oct 10, 2006
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to make it build on all platforms.
Replacing C++ code with C code in a C file.
parent
b8941bbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mysys/mf_iocache2.c
mysys/mf_iocache2.c
+2
-1
No files found.
mysys/mf_iocache2.c
View file @
0b6ff112
...
...
@@ -52,12 +52,13 @@ int
my_b_copy_to_file
(
IO_CACHE
*
cache
,
FILE
*
file
)
{
byte
buf
[
IO_SIZE
];
uint
bytes_in_cache
;
DBUG_ENTER
(
"my_b_copy_to_file"
);
/* Reinit the cache to read from the beginning of the cache */
if
(
reinit_io_cache
(
cache
,
READ_CACHE
,
0L
,
FALSE
,
FALSE
))
DBUG_RETURN
(
1
);
uint
bytes_in_cache
=
my_b_bytes_in_cache
(
cache
);
bytes_in_cache
=
my_b_bytes_in_cache
(
cache
);
while
(
bytes_in_cache
>
0
)
{
uint
const
read_bytes
=
min
(
bytes_in_cache
,
sizeof
(
buf
));
DBUG_PRINT
(
"debug"
,
(
"Remaining %u bytes - Reading %u bytes"
,
...
...
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