diff options
Diffstat (limited to 'database/engine/datafile.c')
-rw-r--r-- | database/engine/datafile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/database/engine/datafile.c b/database/engine/datafile.c index d5c1285be1..dd3461e084 100644 --- a/database/engine/datafile.c +++ b/database/engine/datafile.c @@ -250,7 +250,7 @@ int create_data_file(struct rrdengine_datafile *datafile) char path[RRDENG_PATH_MAX]; generate_datafilepath(datafile, path, sizeof(path)); - fd = open_file_for_io(path, O_CREAT | O_RDWR | O_TRUNC, &file, use_direct_io); + fd = open_file_for_io(path, O_CREAT | O_RDWR | O_TRUNC, &file, rrdb.use_direct_io); if (fd < 0) { ctx_fs_error(ctx); return fd; @@ -333,7 +333,7 @@ static int load_data_file(struct rrdengine_datafile *datafile) char path[RRDENG_PATH_MAX]; generate_datafilepath(datafile, path, sizeof(path)); - fd = open_file_for_io(path, O_RDWR, &file, use_direct_io); + fd = open_file_for_io(path, O_RDWR, &file, rrdb.use_direct_io); if (fd < 0) { ctx_fs_error(ctx); return fd; |