mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge 10.4 into 10.5
This commit is contained in:
commit
d62b0368ca
86 changed files with 2870 additions and 246 deletions
|
|
@ -46,12 +46,15 @@ static BOOL win_rename_with_retries(const char *from, const char *to)
|
|||
|
||||
for (int retry= RENAME_MAX_RETRIES; retry--;)
|
||||
{
|
||||
DWORD ret = MoveFileEx(from, to,
|
||||
BOOL ret= MoveFileEx(from, to,
|
||||
MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING);
|
||||
|
||||
DBUG_ASSERT(fp == NULL || (ret == FALSE && GetLastError() == ERROR_SHARING_VIOLATION));
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (!ret && (GetLastError() == ERROR_SHARING_VIOLATION))
|
||||
DWORD last_error= GetLastError();
|
||||
if (last_error == ERROR_SHARING_VIOLATION ||
|
||||
last_error == ERROR_ACCESS_DENIED)
|
||||
{
|
||||
#ifndef DBUG_OFF
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue