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
6314305e
Commit
6314305e
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: os_file_close_no_error_handling(): Restore,
as this function is used within InnoDB Hot Backup.
parent
1f62fdc8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
include/os0file.h
include/os0file.h
+10
-0
os/os0file.c
os/os0file.c
+37
-0
No files found.
include/os0file.h
View file @
6314305e
...
...
@@ -424,6 +424,16 @@ ibool
os_file_close
(
/*==========*/
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.
@return TRUE if success */
...
...
os/os0file.c
View file @
6314305e
...
...
@@ -1644,6 +1644,43 @@ os_file_close(
#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.
@return TRUE if success */
...
...
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