diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2018-09-04 10:14:24 -0500 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2018-09-05 10:28:54 -0500 |
commit | 7d111a85eb9e38568acbbc0125bb25f69098aec3 (patch) | |
tree | 1e9764ad2c9d797990c6d5576f512012f51cb266 /elog_serialize.cpp | |
parent | 5ac1bde129258d906246f5d4ad78e036f03a6e80 (diff) | |
download | phosphor-logging-7d111a85eb9e38568acbbc0125bb25f69098aec3.tar.gz phosphor-logging-7d111a85eb9e38568acbbc0125bb25f69098aec3.zip |
log_manager: Don't fail on missing synced file
The journald synced file is created during a journal sync, so
if it's missing, the log manager should still perform the sync
operation so that the synced file gets created. This is the
behavior of journalctl which this function is copying, just
this logic wasn't transferred in the original commit. Reference:
https://github.com/systemd/systemd/blob/60118b21c6b4b29376615921c5edc1b05cde306f/src/journal/journalctl.c#L1999
Disabled the unit test cases that call commit since they now
fail. Opened issue openbmc/phosphor-logging#11 for debug.
Closes openbmc/phosphor-logging#10
Tested: With the synced file missing, verified that a commit
operation created the file and there were no error messages
about failing to open the synced file.
Change-Id: Ia720741b99552d51d13cdc6b4e08dbbab58bca77
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'elog_serialize.cpp')
0 files changed, 0 insertions, 0 deletions