daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
572a44
From 0badfa6266d2b5116a14fe2eebcf55f6a072332b Mon Sep 17 00:00:00 2001
572a44
From: Lennart Poettering <lennart@poettering.net>
572a44
Date: Wed, 27 Nov 2013 00:59:07 +0100
572a44
Subject: [PATCH] journal: allow journal_file_copy_entry() to work on non-local
572a44
 files
572a44
572a44
---
572a44
 src/journal/journal-file.c | 4 ----
572a44
 1 file changed, 4 deletions(-)
572a44
572a44
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
572a44
index 53dd0c3..94e3921 100644
572a44
--- a/src/journal/journal-file.c
572a44
+++ b/src/journal/journal-file.c
572a44
@@ -2732,10 +2732,6 @@ int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint6
572a44
         ts.monotonic = le64toh(o->entry.monotonic);
572a44
         ts.realtime = le64toh(o->entry.realtime);
572a44
 
572a44
-        if (to->tail_entry_monotonic_valid &&
572a44
-            ts.monotonic < le64toh(to->header->tail_entry_monotonic))
572a44
-                return -EINVAL;
572a44
-
572a44
         n = journal_file_entry_n_items(o);
572a44
         items = alloca(sizeof(EntryItem) * n);
572a44