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 @@ -55,7 +55,8 @@ void Win32DirIterator::init()
5555
5656 if (dir == INVALID_HANDLE_VALUE)
5757 {
58- if (GetLastError () != ERROR_FILE_NOT_FOUND)
58+ auto const last_error = GetLastError ();
59+ if (last_error != ERROR_FILE_NOT_FOUND && last_error != ERROR_PATH_NOT_FOUND)
5960 system_call_failed::raise (" FindFirstFile" );
6061
6162 dir = 0 ;
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ using namespace Replication;
6666
6767namespace
6868{
69- const unsigned FLUSH_WAIT_INTERVAL = 1 ; // milliseconds
69+ const unsigned FLUSH_WAIT_INTERVAL = 1 ; // milliseconds
7070
71- const unsigned NO_SPACE_TIMEOUT = 10 ; // seconds
71+ const unsigned NO_SPACE_TIMEOUT = 10000 ; // milliseconds
7272 const unsigned NO_SPACE_RETRIES = 6 ; // up to one minute
7373
7474 const unsigned COPY_BLOCK_SIZE = 64 * 1024 ; // 64 KB
You can’t perform that action at this time.
0 commit comments