mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
branches/zip: os_file_set_nocache(): Clean up the function comment.
Add the function prototype to os0file.h.
This commit is contained in:
parent
997de88df6
commit
42db7f1780
2 changed files with 15 additions and 6 deletions
|
@ -290,6 +290,17 @@ os_file_create_simple_no_error_handling(
|
||||||
used by a backup program reading the file */
|
used by a backup program reading the file */
|
||||||
ibool* success);/* out: TRUE if succeed, FALSE if error */
|
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. */
|
Opens an existing file or creates a new. */
|
||||||
UNIV_INTERN
|
UNIV_INTERN
|
||||||
os_file_t
|
os_file_t
|
||||||
|
|
10
os/os0file.c
10
os/os0file.c
|
@ -1109,12 +1109,10 @@ void
|
||||||
os_file_set_nocache(
|
os_file_set_nocache(
|
||||||
/*================*/
|
/*================*/
|
||||||
int fd, /* in: file descriptor to alter */
|
int fd, /* in: file descriptor to alter */
|
||||||
const char* file_name, /* in: used in the diagnostic message */
|
const char* file_name, /* in: file name, used in the
|
||||||
const char* operation_name) /* in: used in the diagnostic message,
|
diagnostic message */
|
||||||
we call os_file_set_nocache()
|
const char* operation_name) /* in: "open" or "create"; used in the
|
||||||
immediately after opening or creating
|
diagnostic message */
|
||||||
a file, so this is either "open" or
|
|
||||||
"create" */
|
|
||||||
{
|
{
|
||||||
/* some versions of Solaris may not have DIRECTIO_ON */
|
/* some versions of Solaris may not have DIRECTIO_ON */
|
||||||
#if defined(UNIV_SOLARIS) && defined(DIRECTIO_ON)
|
#if defined(UNIV_SOLARIS) && defined(DIRECTIO_ON)
|
||||||
|
|
Loading…
Add table
Reference in a new issue