File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ void Win32DirIterator::init()
5656
5757 if (dir == INVALID_HANDLE_VALUE)
5858 {
59- if (GetLastError () != ERROR_FILE_NOT_FOUND)
59+ auto const last_error = GetLastError ();
60+ if (last_error != ERROR_FILE_NOT_FOUND && last_error != ERROR_PATH_NOT_FOUND)
6061 system_call_failed::raise (" FindFirstFile" );
6162
6263 dir = 0 ;
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ using namespace Replication;
6666
6767namespace
6868{
69- inline constexpr unsigned FLUSH_WAIT_INTERVAL = 1 ; // milliseconds
69+ inline constexpr unsigned FLUSH_WAIT_INTERVAL = 1 ; // milliseconds
7070
71- inline constexpr unsigned NO_SPACE_TIMEOUT = 10 ; // seconds
71+ inline constexpr unsigned NO_SPACE_TIMEOUT = 10000 ; // milliseconds
7272 inline constexpr unsigned NO_SPACE_RETRIES = 6 ; // up to one minute
7373
7474 inline constexpr unsigned COPY_BLOCK_SIZE = 64 * 1024 ; // 64 KB
You can’t perform that action at this time.
0 commit comments