Bug fix, Redwood was not using direct IO where available.

This commit is contained in:
Steve Atherton 2020-02-20 10:29:20 -08:00
parent fe78524bbc
commit 893729e3a8
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ public:
self->remapUndoFuture = Void();
int64_t flags = IAsyncFile::OPEN_UNCACHED | IAsyncFile::OPEN_READWRITE | IAsyncFile::OPEN_LOCK;
int64_t flags = IAsyncFile::OPEN_UNCACHED | IAsyncFile::OPEN_UNBUFFERED | IAsyncFile::OPEN_READWRITE | IAsyncFile::OPEN_LOCK;
state bool exists = fileExists(self->filename);
if(!exists) {
flags |= IAsyncFile::OPEN_ATOMIC_WRITE_AND_CREATE | IAsyncFile::OPEN_CREATE;