journald: don't ask for the machine ID if we don't need it

This commit is contained in:
Lennart Poettering 2019-11-25 14:08:53 +01:00
parent 3aebd9d6dd
commit 806c6a5b97
1 changed files with 0 additions and 5 deletions

View File

@ -1115,7 +1115,6 @@ void server_dispatch_message(
}
int server_flush_to_var(Server *s, bool require_flag_file) {
sd_id128_t machine;
sd_journal *j = NULL;
char ts[FORMAT_TIMESPAN_MAX];
usec_t start;
@ -1142,10 +1141,6 @@ int server_flush_to_var(Server *s, bool require_flag_file) {
start = now(CLOCK_MONOTONIC);
r = sd_id128_get_machine(&machine);
if (r < 0)
return r;
r = sd_journal_open(&j, SD_JOURNAL_RUNTIME_ONLY);
if (r < 0)
return log_error_errno(r, "Failed to read runtime journal: %m");