mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +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 */
|
||||
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
|
||||
|
|
10
os/os0file.c
10
os/os0file.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue