diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:45:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:45:55 +0000 |
commit | a8220ab2d293bb7f4b014b79d16b2fb05090fa93 (patch) | |
tree | 77f0a30f016c0925cf7ee9292e644bba183c2774 /database/engine/datafile.h | |
parent | Adding upstream version 1.19.0. (diff) | |
download | netdata-a8220ab2d293bb7f4b014b79d16b2fb05090fa93.tar.xz netdata-a8220ab2d293bb7f4b014b79d16b2fb05090fa93.zip |
Adding upstream version 1.29.0.upstream/1.29.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/engine/datafile.h')
-rw-r--r-- | database/engine/datafile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/database/engine/datafile.h b/database/engine/datafile.h index eeb11310b..ae94bfdd0 100644 --- a/database/engine/datafile.h +++ b/database/engine/datafile.h @@ -14,7 +14,7 @@ struct rrdengine_instance; #define DATAFILE_EXTENSION ".ndf" #define MAX_DATAFILE_SIZE (1073741824LU) -#define MIN_DATAFILE_SIZE (16777216LU) +#define MIN_DATAFILE_SIZE (4194304LU) #define MAX_DATAFILES (65536) /* Supports up to 64TiB for now */ #define TARGET_DATAFILES (20) @@ -57,6 +57,7 @@ extern void datafile_list_insert(struct rrdengine_instance *ctx, struct rrdengin extern void datafile_list_delete(struct rrdengine_instance *ctx, struct rrdengine_datafile *datafile); extern void generate_datafilepath(struct rrdengine_datafile *datafile, char *str, size_t maxlen); extern int close_data_file(struct rrdengine_datafile *datafile); +extern int unlink_data_file(struct rrdengine_datafile *datafile); extern int destroy_data_file(struct rrdengine_datafile *datafile); extern int create_data_file(struct rrdengine_datafile *datafile); extern int create_new_datafile_pair(struct rrdengine_instance *ctx, unsigned tier, unsigned fileno); |