Skip to content

Commit 033b220

Browse files
committed
remove O_DIRECT since we don't have aligned data
1 parent 71b1e8b commit 033b220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/persistentNodeCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default class PersistentNodeCache extends NodeCache {
219219

220220
private appendToFile(fileName: string, data: Buffer): void {
221221
this.changesSinceLastBackup = true;
222-
const flags = fs.constants.O_WRONLY | fs.constants.O_DIRECT | fs.constants.O_APPEND;
222+
const flags = fs.constants.O_WRONLY | fs.constants.O_APPEND;
223223
const mode = 0o666;
224224

225225
if(this.appendFileDescriptor) {

0 commit comments

Comments
 (0)