From: Lennart Poettering Date: Tue, 26 Nov 2013 23:59:07 +0000 (+0100) Subject: journal: allow journal_file_copy_entry() to work on non-local files X-Git-Tag: v209~1276 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=248c78c79c5cca9b981800d816a77591e504066a;p=elogind.git journal: allow journal_file_copy_entry() to work on non-local files --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 409be76dd..14eae8f57 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2732,10 +2732,6 @@ int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint6 ts.monotonic = le64toh(o->entry.monotonic); ts.realtime = le64toh(o->entry.realtime); - if (to->tail_entry_monotonic_valid && - ts.monotonic < le64toh(to->header->tail_entry_monotonic)) - return -EINVAL; - n = journal_file_entry_n_items(o); items = alloca(sizeof(EntryItem) * n);