diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-10-09 21:58:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 21:58:21 +0300 |
commit | 758d9c405d2d768a3c125052a02c7a1503b01bd8 (patch) | |
tree | de24c46008c9c7bf95270ebb8f3b117229c43db9 /database/engine/journalfile.c | |
parent | 067305602f373d12286e492143bf6cb2a32ffe31 (diff) |
full memory tracking and profiling of Netdata Agent (#13789)
* full memory tracking and profiling of Netdata Agent
* initialize dbengine only when it is needed
* handling of dbengine compiled but not available
* restore unittest
* restore unittest again
* more improvements about ifdef dbengine
* fix compilation when dbengine is not enabled
* check if dbengine is enabled on exit
* call freez() not free()
* aral unittest
* internal checks activate trace allocations; dev mode activates internal checks
Diffstat (limited to 'database/engine/journalfile.c')
-rw-r--r-- | database/engine/journalfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database/engine/journalfile.c b/database/engine/journalfile.c index 0e8f935ad7..95c3a46f80 100644 --- a/database/engine/journalfile.c +++ b/database/engine/journalfile.c @@ -527,7 +527,7 @@ int load_journal_file(struct rrdengine_instance *ctx, struct rrdengine_journalfi info("Journal file \"%s\" loaded (size:%"PRIu64").", path, file_size); if (likely(journalfile->data)) - munmap(journalfile->data, file_size); + netdata_munmap(journalfile->data, file_size); return 0; error: |