Right now, if MapViewOfFile() returns an error, we just log a message and blindly continue. This can result in incomplete data being returned for a given query, as illustrated by the failing update.js test on Windows.
We should throw an exception (or massert) when the Windows function returns an error, to prevent the query from proceeding.
I see that calls to mmap() also just return 0 and do not throw an exception, so perhaps we should throw here as well?
The alternative is to check all the places where we're using MemoryMappedFile member functions and ensure we're not ignoring their return statuses.
- related to
-
SERVER-5244 core suite fails with "not enough storage" error - Windows 32 bit
-
- Closed
-