chiark / gitweb /
journal: don't write tag objects if nothing has been written since the last time
[elogind.git] / src / journal / journal-verify.c
index 8eefb841b2e29f1acc39cbfbc6bf2d4383aac4ef..9907c5fe26617c89fd87551f096c08ac9fa25408 100644 (file)
@@ -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;