diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-26 17:10:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-26 17:10:03 +0000 |
commit | 271f618a49421e87945c1f68b59a8775469390d5 (patch) | |
tree | 166cbc9497e13b878bdd7043ca58f6b3da006f2a /database/engine | |
parent | Adding upstream version 1.43.0. (diff) | |
download | netdata-upstream/1.43.1.tar.xz netdata-upstream/1.43.1.zip |
Adding upstream version 1.43.1.upstream/1.43.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/engine')
-rw-r--r-- | database/engine/rrdengine.c | 4 | ||||
-rw-r--r-- | database/engine/rrdengine.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/database/engine/rrdengine.c b/database/engine/rrdengine.c index ce363183d..99257b79d 100644 --- a/database/engine/rrdengine.c +++ b/database/engine/rrdengine.c @@ -1427,8 +1427,8 @@ static void *query_prep_tp_worker(struct rrdengine_instance *ctx __maybe_unused, return data; } -unsigned rrdeng_target_data_file_size(struct rrdengine_instance *ctx) { - unsigned target_size = ctx->config.max_disk_space / TARGET_DATAFILES; +uint64_t rrdeng_target_data_file_size(struct rrdengine_instance *ctx) { + uint64_t target_size = ctx->config.max_disk_space / TARGET_DATAFILES; target_size = MIN(target_size, MAX_DATAFILE_SIZE); target_size = MAX(target_size, MIN_DATAFILE_SIZE); return target_size; diff --git a/database/engine/rrdengine.h b/database/engine/rrdengine.h index b5476930a..08eaf4128 100644 --- a/database/engine/rrdengine.h +++ b/database/engine/rrdengine.h @@ -476,7 +476,7 @@ void pdc_route_synchronously(struct rrdengine_instance *ctx, struct page_details void pdc_acquire(PDC *pdc); bool pdc_release_and_destroy_if_unreferenced(PDC *pdc, bool worker, bool router); -unsigned rrdeng_target_data_file_size(struct rrdengine_instance *ctx); +uint64_t rrdeng_target_data_file_size(struct rrdengine_instance *ctx); struct page_descr_with_data *page_descriptor_get(void); |