dryang / rpms / systemd

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