summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-16 19:26:54 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-16 19:26:54 +0200
commit74d29da52409ab149738ea76824679d29598e0ac (patch)
tree00cd5c996d2d67326584be48275b6b06f97159e0 /src/journal/journal-file.c
parenta6c9b1c492378a093fe7db69c42a19b8f8193814 (diff)
journald: don't enforce monotonicity of realtime clocks when copying entries
After all the point of the realtime clock (in contrast to the monotonic clock) is that it does not have to be strictly monotonic, hence don't enforce this when flushing the journal from /run to /var.
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 0aada9c419..cd5ab266f0 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2312,9 +2312,6 @@ int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint6
ts.monotonic < le64toh(to->header->tail_entry_monotonic))
return -EINVAL;
- if (ts.realtime < le64toh(to->header->tail_entry_realtime))
- return -EINVAL;
-
n = journal_file_entry_n_items(o);
items = alloca(sizeof(EntryItem) * n);