summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-27 11:27:58 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-31 14:30:23 +0200
commitd180c3499867bc7c70951c6158025b107d3b90dc (patch)
tree70dab4db15f3d0b8e28ce3acac9f328c8d38c667 /src/journal-remote
parentjournal: remove unused args from journal_file_copy_entry() (diff)
downloadsystemd-d180c3499867bc7c70951c6158025b107d3b90dc.tar.xz
systemd-d180c3499867bc7c70951c6158025b107d3b90dc.zip
journal: allow boot_id to be passed to journal_append_entry()
In this commit, this is done only in testing code, i.e. there is no functional change apart from tests.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote-write.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/journal-remote/journal-remote-write.c b/src/journal-remote/journal-remote-write.c
index 494ee71e95..949fdca372 100644
--- a/src/journal-remote/journal-remote-write.c
+++ b/src/journal-remote/journal-remote-write.c
@@ -92,7 +92,8 @@ int writer_write(Writer *w,
return r;
}
- r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count,
+ r = journal_file_append_entry(w->journal, ts, NULL,
+ iovw->iovec, iovw->count,
&w->seqnum, NULL, NULL);
if (r >= 0) {
if (w->server)
@@ -109,7 +110,8 @@ int writer_write(Writer *w,
log_debug("%s: Successfully rotated journal", w->journal->path);
log_debug("Retrying write.");
- r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count,
+ r = journal_file_append_entry(w->journal, ts, NULL,
+ iovw->iovec, iovw->count,
&w->seqnum, NULL, NULL);
if (r < 0)
return r;