Open incrementalDelete files with OPEN_UNBUFFERED

This fixes crashes from AsyncFileWinASIO refusing to open a file that
didn't have OPEN_UNBUFFERED.
This commit is contained in:
Alex Miller 2019-04-01 17:25:08 -07:00
parent a1632b6f44
commit 45c466e269

View File

@ -88,7 +88,7 @@ ACTOR static Future<Void> incrementalDeleteHelper( std::string filename, bool mu
state bool exists = fileExists(filename); state bool exists = fileExists(filename);
if(exists) { if(exists) {
Reference<IAsyncFile> f = wait(IAsyncFileSystem::filesystem()->open(filename, IAsyncFile::OPEN_READWRITE | IAsyncFile::OPEN_UNCACHED, 0)); Reference<IAsyncFile> f = wait(IAsyncFileSystem::filesystem()->open(filename, IAsyncFile::OPEN_READWRITE | IAsyncFile::OPEN_UNCACHED | IAsyncFile::OPEN_UNBUFFERED, 0));
file = f; file = f;
int64_t fileSize = wait(file->size()); int64_t fileSize = wait(file->size());