mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 18:53:33 +08:00
Merge pull request #2708 from vcaputo/journal-restore-offline-state-on-error
journal: restore offline state on error
This commit is contained in:
commit
d971033f6b
@ -238,8 +238,10 @@ int journal_file_set_offline(JournalFile *f, bool wait) {
|
||||
journal_file_set_offline_internal(f);
|
||||
else {
|
||||
r = pthread_create(&f->offline_thread, NULL, journal_file_set_offline_thread, f);
|
||||
if (r > 0)
|
||||
if (r > 0) {
|
||||
f->offline_state = OFFLINE_JOINED;
|
||||
return -r;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user