Merge pull request #1396 from alexmiller-apple/win-unbuffered-6.1

Open incrementalDelete files with OPEN_UNBUFFERED
This commit is contained in:
Evan Tschannen 2019-04-01 18:05:12 -07:00 committed by GitHub
commit fc269666fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ ACTOR static Future<Void> incrementalDeleteHelper( std::string filename, bool mu
state bool exists = fileExists(filename);
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;
int64_t fileSize = wait(file->size());