Commit 6314305e authored by marko's avatar marko

branches/zip: os_file_close_no_error_handling(): Restore,

as this function is used within InnoDB Hot Backup.
parent 1f62fdc8
...@@ -424,6 +424,16 @@ ibool ...@@ -424,6 +424,16 @@ ibool
os_file_close( os_file_close(
/*==========*/ /*==========*/
os_file_t file); /*!< in, own: handle to a file */ os_file_t file); /*!< in, own: handle to a file */
#ifdef UNIV_HOTBACKUP
/***********************************************************************//**
Closes a file handle.
@return TRUE if success */
UNIV_INTERN
ibool
os_file_close_no_error_handling(
/*============================*/
os_file_t file); /*!< in, own: handle to a file */
#endif /* UNIV_HOTBACKUP */
/***********************************************************************//** /***********************************************************************//**
Gets a file size. Gets a file size.
@return TRUE if success */ @return TRUE if success */
......
...@@ -1644,6 +1644,43 @@ os_file_close( ...@@ -1644,6 +1644,43 @@ os_file_close(
#endif #endif
} }
#ifdef UNIV_HOTBACKUP
/***********************************************************************//**
Closes a file handle.
@return TRUE if success */
UNIV_INTERN
ibool
os_file_close_no_error_handling(
/*============================*/
os_file_t file) /*!< in, own: handle to a file */
{
#ifdef __WIN__
BOOL ret;
ut_a(file);
ret = CloseHandle(file);
if (ret) {
return(TRUE);
}
return(FALSE);
#else
int ret;
ret = close(file);
if (ret == -1) {
return(FALSE);
}
return(TRUE);
#endif
}
#endif /* UNIV_HOTBACKUP */
/***********************************************************************//** /***********************************************************************//**
Gets a file size. Gets a file size.
@return TRUE if success */ @return TRUE if success */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment