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
2063531f
Commit
2063531f
authored
Feb 28, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: os_file_set_nocache(): Clean up the function comment.
Add the function prototype to os0file.h.
parent
8bf7931e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
include/os0file.h
include/os0file.h
+11
-0
os/os0file.c
os/os0file.c
+4
-6
No files found.
include/os0file.h
View file @
2063531f
...
...
@@ -290,6 +290,17 @@ os_file_create_simple_no_error_handling(
used by a backup program reading the file */
ibool
*
success
);
/* out: TRUE if succeed, FALSE if error */
/********************************************************************
Tries to disable OS caching on an opened file descriptor. */
UNIV_INTERN
void
os_file_set_nocache
(
/*================*/
int
fd
,
/* in: file descriptor to alter */
const
char
*
file_name
,
/* in: file name, used in the
diagnostic message */
const
char
*
operation_name
);
/* in: "open" or "create"; used in the
diagnostic message */
/********************************************************************
Opens an existing file or creates a new. */
UNIV_INTERN
os_file_t
...
...
os/os0file.c
View file @
2063531f
...
...
@@ -1109,12 +1109,10 @@ void
os_file_set_nocache
(
/*================*/
int
fd
,
/* in: file descriptor to alter */
const
char
*
file_name
,
/* in: used in the diagnostic message */
const
char
*
operation_name
)
/* in: used in the diagnostic message,
we call os_file_set_nocache()
immediately after opening or creating
a file, so this is either "open" or
"create" */
const
char
*
file_name
,
/* in: file name, used in the
diagnostic message */
const
char
*
operation_name
)
/* in: "open" or "create"; used in the
diagnostic message */
{
/* some versions of Solaris may not have DIRECTIO_ON */
#if defined(UNIV_SOLARIS) && defined(DIRECTIO_ON)
...
...
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