[*] eng-regression: introduce missing RuntimeWaitForSecondaryTick's
This commit is contained in:
parent
bab44d097a
commit
95adfe127d
@ -203,6 +203,20 @@ namespace Aurora::IO::FS
|
|||||||
OPEN_EXISTING,
|
OPEN_EXISTING,
|
||||||
0,
|
0,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
|
if (fileHandle == INVALID_HANDLE_VALUE &&
|
||||||
|
GetLastError() == ERROR_SHARING_VIOLATION)
|
||||||
|
{
|
||||||
|
RuntimeWaitForSecondaryTick();
|
||||||
|
fileHandle = Win32Open(win32Path.c_str(),
|
||||||
|
GENERIC_READ,
|
||||||
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
|
false,
|
||||||
|
OPEN_EXISTING,
|
||||||
|
0,
|
||||||
|
0);
|
||||||
|
}
|
||||||
|
|
||||||
if (fileHandle == INVALID_HANDLE_VALUE)
|
if (fileHandle == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
SysPushErrorIO("Couldn't open handle: {}", path);
|
SysPushErrorIO("Couldn't open handle: {}", path);
|
||||||
|
@ -67,6 +67,21 @@ namespace Aurora::IO::FS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GetLastError() == ERROR_SHARING_VIOLATION)
|
||||||
|
{
|
||||||
|
RuntimeWaitForSecondaryTick();
|
||||||
|
hFile = Win32Open(win32Path.c_str(),
|
||||||
|
GENERIC_WRITE | FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES,
|
||||||
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
|
false,
|
||||||
|
OPEN_EXISTING,
|
||||||
|
0,
|
||||||
|
0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hFile == INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
SysPushErrorIO("Couldn't open a handle for: {}", path);
|
SysPushErrorIO("Couldn't open a handle for: {}", path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,8 @@ namespace Aurora::IO::FS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RuntimeWaitForSecondaryTick();
|
||||||
|
|
||||||
Stat auStat;
|
Stat auStat;
|
||||||
if (!times.accessedNs ||
|
if (!times.accessedNs ||
|
||||||
!times.modifiedNs)
|
!times.modifiedNs)
|
||||||
|
Loading…
Reference in New Issue
Block a user