Skip to content

Commit 8bb8fca

Browse files
committed
Disable the warning that cache is disabled in append mode
In append mode we don't necessarily have the flat node setting from the command line, because it is read from the properties file. So this would give us an unnecessary and wrong warning. This is just a band aid though, a better fix would be to check after we have read the properties file. But that needs some larger changes I'll leave for when we refactor the command line parsing code.
1 parent 368d67d commit 8bb8fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command-line-parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static void check_options(options_t *options)
486486
throw std::runtime_error{
487487
"RAM node cache can only be disabled in slim mode."};
488488
}
489-
if (options->flat_node_file.empty()) {
489+
if (options->flat_node_file.empty() && !options->append) {
490490
log_warn("RAM cache is disabled. This will likely slow down "
491491
"processing a lot.");
492492
}

0 commit comments

Comments
 (0)