mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
Merge 10.0 to 10.1
This commit is contained in:
commit
1d4e1d3263
6 changed files with 8 additions and 236 deletions
|
|
@ -1350,7 +1350,8 @@ os_file_create_simple_func(
|
|||
/* Use default security attributes and no template file. */
|
||||
|
||||
file = CreateFile(
|
||||
(LPCTSTR) name, access, FILE_SHARE_READ, NULL,
|
||||
(LPCTSTR) name, access,
|
||||
FILE_SHARE_READ | FILE_SHARE_DELETE, NULL,
|
||||
create_flag, attributes, NULL);
|
||||
|
||||
if (file == INVALID_HANDLE_VALUE) {
|
||||
|
|
@ -1483,7 +1484,7 @@ os_file_create_simple_no_error_handling_func(
|
|||
DWORD access;
|
||||
DWORD create_flag;
|
||||
DWORD attributes = 0;
|
||||
DWORD share_mode = FILE_SHARE_READ;
|
||||
DWORD share_mode = FILE_SHARE_READ | FILE_SHARE_DELETE;
|
||||
ut_a(name);
|
||||
|
||||
ut_a(!(create_mode & OS_FILE_ON_ERROR_SILENT));
|
||||
|
|
@ -1764,7 +1765,7 @@ os_file_create_func(
|
|||
|
||||
#ifdef __WIN__
|
||||
DWORD create_flag;
|
||||
DWORD share_mode = FILE_SHARE_READ;
|
||||
DWORD share_mode = FILE_SHARE_READ | FILE_SHARE_DELETE;
|
||||
|
||||
on_error_no_exit = create_mode & OS_FILE_ON_ERROR_NO_EXIT
|
||||
? TRUE : FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue