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
496a3f20
Commit
496a3f20
authored
May 19, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.0-8271
into mysql.com:/home/jimw/my/mysql-5.0-build
parents
50c4ed93
fb00361b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mysys/mf_iocache.c
mysys/mf_iocache.c
+4
-2
No files found.
mysys/mf_iocache.c
View file @
496a3f20
...
@@ -171,7 +171,7 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
...
@@ -171,7 +171,7 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
info
->
arg
=
0
;
info
->
arg
=
0
;
info
->
alloced_buffer
=
0
;
info
->
alloced_buffer
=
0
;
info
->
buffer
=
0
;
info
->
buffer
=
0
;
info
->
seek_not_done
=
test
(
file
>=
0
);
info
->
seek_not_done
=
test
(
file
>=
0
&&
seek_offset
!=
my_tell
(
file
,
MYF
(
0
))
);
info
->
disk_writes
=
0
;
info
->
disk_writes
=
0
;
#ifdef THREAD
#ifdef THREAD
info
->
share
=
0
;
info
->
share
=
0
;
...
@@ -184,8 +184,10 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
...
@@ -184,8 +184,10 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
{
/* Assume file isn't growing */
{
/* Assume file isn't growing */
if
(
!
(
cache_myflags
&
MY_DONT_CHECK_FILESIZE
))
if
(
!
(
cache_myflags
&
MY_DONT_CHECK_FILESIZE
))
{
{
/* Calculate end of file to
not allocate to big
buffers */
/* Calculate end of file to
avoid allocating oversized
buffers */
end_of_file
=
my_seek
(
file
,
0L
,
MY_SEEK_END
,
MYF
(
0
));
end_of_file
=
my_seek
(
file
,
0L
,
MY_SEEK_END
,
MYF
(
0
));
/* Need to reset seek_not_done now that we just did a seek. */
info
->
seek_not_done
=
end_of_file
==
seek_offset
?
0
:
1
;
if
(
end_of_file
<
seek_offset
)
if
(
end_of_file
<
seek_offset
)
end_of_file
=
seek_offset
;
end_of_file
=
seek_offset
;
/* Trim cache size if the file is very small */
/* Trim cache size if the file is very small */
...
...
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