summaryrefslogtreecommitdiffstats
path: root/database/engine
diff options
context:
space:
mode:
Diffstat (limited to 'database/engine')
-rw-r--r--database/engine/metadata_log/logfile.c4
-rw-r--r--database/engine/pagecache.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/database/engine/metadata_log/logfile.c b/database/engine/metadata_log/logfile.c
index 07eb9b6fe3..db8886f8cb 100644
--- a/database/engine/metadata_log/logfile.c
+++ b/database/engine/metadata_log/logfile.c
@@ -369,7 +369,7 @@ static int scan_metalog_files(struct metalog_instance *ctx)
.obsolete = 0,
.started_t = INVALID_TIME,
.next = NULL,
- .version = 0,
+ .capabilities = 0,
};
struct metalog_pluginsd_state metalog_parser_state;
@@ -383,7 +383,7 @@ static int scan_metalog_files(struct metalog_instance *ctx)
.private = &metalog_parser_state
};
- PARSER *parser = parser_init(metalog_parser_object.host, &metalog_parser_object, NULL, PARSER_INPUT_SPLIT);
+ PARSER *parser = parser_init(metalog_parser_object.host, &metalog_parser_object, NULL, NULL, PARSER_INPUT_SPLIT|PARSER_NO_ACTION_INIT);
parser_add_keyword(parser, PLUGINSD_KEYWORD_HOST, metalog_pluginsd_host);
parser_add_keyword(parser, PLUGINSD_KEYWORD_GUID, pluginsd_guid);
parser_add_keyword(parser, PLUGINSD_KEYWORD_CONTEXT, pluginsd_context);
diff --git a/database/engine/pagecache.c b/database/engine/pagecache.c
index c105a4fca9..c9c4ec4628 100644
--- a/database/engine/pagecache.c
+++ b/database/engine/pagecache.c
@@ -1251,7 +1251,7 @@ void free_page_cache(struct rrdengine_instance *ctx)
// Do the cleanup if we are compiling with NETDATA_INTERNAL_CHECKS
// This affects the reporting of dbengine statistics which are available in real time
// via the /api/v1/dbengine_stats endpoint
-#ifndef NETDATA_INTERNAL_CHECKS
+#ifndef NETDATA_DBENGINE_FREE
if (netdata_exit)
return;
#endif