mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
journald: don't ask for the machine ID if we don't need it
This commit is contained in:
parent
3aebd9d6dd
commit
806c6a5b97
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user