From 0aaae3eb3d02be3f878d8941e8fc43c67651d627 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 26 Mar 2025 11:29:14 -0400 Subject: [PATCH] journalctl: make Synchronize() call more lighweight, by not asking for offlining --- src/journal/journalctl-show.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.47.3