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
ce5b8e59
Commit
ce5b8e59
authored
May 21, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: clarify the function name and purpose
and make it static
parent
d500c22f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
include/my_sys.h
include/my_sys.h
+0
-1
mysys/mf_iocache.c
mysys/mf_iocache.c
+4
-4
No files found.
include/my_sys.h
View file @
ce5b8e59
...
@@ -513,7 +513,6 @@ extern PSI_file_key key_file_io_cache;
...
@@ -513,7 +513,6 @@ extern PSI_file_key key_file_io_cache;
/* inline functions for mf_iocache */
/* inline functions for mf_iocache */
extern
int
my_b_flush_io_cache
(
IO_CACHE
*
info
,
int
need_append_buffer_lock
);
extern
int
my_b_flush_io_cache
(
IO_CACHE
*
info
,
int
need_append_buffer_lock
);
extern
void
end_tracking_io_cache
(
IO_CACHE
*
info
);
extern
void
truncate_io_cache
(
IO_CACHE
*
info
);
extern
void
truncate_io_cache
(
IO_CACHE
*
info
);
extern
int
_my_b_get
(
IO_CACHE
*
info
);
extern
int
_my_b_get
(
IO_CACHE
*
info
);
extern
int
_my_b_read
(
IO_CACHE
*
info
,
uchar
*
Buffer
,
size_t
Count
);
extern
int
_my_b_read
(
IO_CACHE
*
info
,
uchar
*
Buffer
,
size_t
Count
);
...
...
mysys/mf_iocache.c
View file @
ce5b8e59
...
@@ -104,13 +104,13 @@ my_bool io_cache_tmp_file_track(IO_CACHE *info, ulonglong file_size)
...
@@ -104,13 +104,13 @@ my_bool io_cache_tmp_file_track(IO_CACHE *info, ulonglong file_size)
/**
/**
End
tmp space tracking for the data in the io cache
Reset
tmp space tracking for the data in the io cache
This is called when deleting or truncating the
This is called when deleting or truncating the
cached file.
cached file.
*/
*/
void
end
_tracking_io_cache
(
IO_CACHE
*
info
)
static
void
reset
_tracking_io_cache
(
IO_CACHE
*
info
)
{
{
if
((
info
->
myflags
&
(
MY_TRACK
|
MY_TRACK_WITH_LIMIT
))
&&
if
((
info
->
myflags
&
(
MY_TRACK
|
MY_TRACK_WITH_LIMIT
))
&&
info
->
tracking
.
file_size
)
info
->
tracking
.
file_size
)
...
@@ -123,7 +123,7 @@ void end_tracking_io_cache(IO_CACHE *info)
...
@@ -123,7 +123,7 @@ void end_tracking_io_cache(IO_CACHE *info)
void
truncate_io_cache
(
IO_CACHE
*
info
)
void
truncate_io_cache
(
IO_CACHE
*
info
)
{
{
if
(
my_chsize
(
info
->
file
,
0
,
0
,
MYF
(
MY_WME
))
==
0
)
if
(
my_chsize
(
info
->
file
,
0
,
0
,
MYF
(
MY_WME
))
==
0
)
end
_tracking_io_cache
(
info
);
reset
_tracking_io_cache
(
info
);
}
}
...
@@ -1870,7 +1870,7 @@ int end_io_cache(IO_CACHE *info)
...
@@ -1870,7 +1870,7 @@ int end_io_cache(IO_CACHE *info)
/* Destroy allocated mutex */
/* Destroy allocated mutex */
mysql_mutex_destroy
(
&
info
->
append_buffer_lock
);
mysql_mutex_destroy
(
&
info
->
append_buffer_lock
);
}
}
end
_tracking_io_cache
(
info
);
reset
_tracking_io_cache
(
info
);
info
->
share
=
0
;
info
->
share
=
0
;
info
->
type
=
TYPE_NOT_SET
;
/* Ensure that flush_io_cache() does nothing */
info
->
type
=
TYPE_NOT_SET
;
/* Ensure that flush_io_cache() does nothing */
info
->
write_end
=
0
;
/* Ensure that my_b_write() fails */
info
->
write_end
=
0
;
/* Ensure that my_b_write() fails */
...
...
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