summaryrefslogtreecommitdiffstats
path: root/database/engine/rrdenginelib.c
diff options
context:
space:
mode:
Diffstat (limited to 'database/engine/rrdenginelib.c')
-rw-r--r--database/engine/rrdenginelib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/engine/rrdenginelib.c b/database/engine/rrdenginelib.c
index 0523d54e7e..96504b275f 100644
--- a/database/engine/rrdenginelib.c
+++ b/database/engine/rrdenginelib.c
@@ -103,7 +103,7 @@ int open_file_direct_io(char *path, int flags, uv_file *file)
error("File \"%s\" does not support direct I/O, falling back to buffered I/O.", path);
} else {
error("Failed to open file \"%s\".", path);
- return fd;
+ --direct; /* break the loop */
}
} else {
assert(req.result >= 0);