summaryrefslogtreecommitdiff
path: root/src/firstboot/firstboot.c
diff options
context:
space:
mode:
authorKlearchos Chaloulos <klearchos.chaloulos@nokia.com>2015-12-09 18:34:36 +0200
committerKlearchos Chaloulos <klearchos.chaloulos@nokia.com>2015-12-09 18:34:36 +0200
commit8a3db16df40c1bbcb1d1debc80fbf92339503235 (patch)
tree848348264f88674b9dd32001240a129b28d814dd /src/firstboot/firstboot.c
parent089627141998d69d1e2e05bcbeb366af3db7a449 (diff)
journal-upload : Ignore journal event when already in uploading state.
When the log rate is high, it is possible that the callback dispatch_journal_input() will be called twice, while the program is in uploading state. There is a guard for this in dispatch_journal_input(). However it is not enough, as it is possible that the uploading state is not set when the code is in dispatch_journal_input(). The result of the above is that a log would be skipped, as sd_journal_next_skip() would be called twice. Adding a new check in process_journal_input(), just before the code to sd_journal_next_skip(), makes sure that the code ignores a duplicate callback, when the first callback is in uploading state. Also, removed the warning log from dispatch_journal_input(), as this occurence is normal.
Diffstat (limited to 'src/firstboot/firstboot.c')
0 files changed, 0 insertions, 0 deletions