From: Lennart Poettering Date: Wed, 26 Mar 2025 15:29:14 +0000 (-0400) Subject: journalctl: make Synchronize() call more lighweight, by not asking for offlining X-Git-Tag: v258-rc1~633^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0aaae3eb3d02be3f878d8941e8fc43c67651d627;p=thirdparty%2Fsystemd.git journalctl: make Synchronize() call more lighweight, by not asking for offlining --- diff --git a/src/journal/journalctl-show.c b/src/journal/journalctl-show.c index 3c69e6ec558..d4a7c730c58 100644 --- a/src/journal/journalctl-show.c +++ b/src/journal/journalctl-show.c @@ -396,7 +396,10 @@ static int on_signal(sd_event_source *s, const struct signalfd_siginfo *si, void (void) sd_varlink_set_userdata(vl, c); - r = sd_varlink_invoke(vl, "io.systemd.Journal.Synchronize", /* parameters= */ NULL); + r = sd_varlink_invokebo( + vl, + "io.systemd.Journal.Synchronize", + SD_JSON_BUILD_PAIR_BOOLEAN("offline", false)); if (r < 0) { log_warning_errno(r, "Failed to issue synchronization request: %m"); goto finish;