summaryrefslogtreecommitdiff
path: root/src/journal/journal-verify.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-17 01:19:32 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-17 01:19:32 +0200
commite627440b41bb0284e4892f7aa9d84c77972487e2 (patch)
treea87f15688752981b7c35338370fdc8ca5a3cb8e3 /src/journal/journal-verify.c
parent31094aae09dd5a773e1634334bcd12fc8834a030 (diff)
journal: don't write tag objects if nothing has been written since the last time
Diffstat (limited to 'src/journal/journal-verify.c')
-rw-r--r--src/journal/journal-verify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c
index 8eefb841b2..9907c5fe26 100644
--- a/src/journal/journal-verify.c
+++ b/src/journal/journal-verify.c
@@ -35,7 +35,6 @@
/* FIXME:
*
- * - write tag only if non-tag objects have been written
* - write bit mucking test
* - tag timestamps should be between entry timestamps
* - output validated time ranges
@@ -857,6 +856,8 @@ int journal_file_verify(JournalFile *f, const char *key) {
goto fail;
}
+ log_debug("Checking tag %llu..", (unsigned long long) le64toh(o->tag.seqnum));
+
if (le64toh(o->tag.seqnum) != n_tags + 1) {
log_error("Tag sequence number out of synchronization at %llu", (unsigned long long) p);
r = -EBADMSG;