]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: FileJournal::read_entry() can't use a zero seq to check for corruption
authorDavid Zafman <dzafman@redhat.com>
Fri, 6 Feb 2015 02:40:25 +0000 (18:40 -0800)
committerDavid Zafman <dzafman@redhat.com>
Wed, 13 May 2015 20:09:11 +0000 (13:09 -0700)
Seen when using dump() on a journal which has all entries committed

Signed-off-by: David Zafman <dzafman@redhat.com>
src/os/FileJournal.cc

index 80fa1a9477a6bbce71a424971a50e277ded4006b..3130ac9c7c8e14a94f7bc2b25f07cf8176247831 100644 (file)
@@ -1778,7 +1778,7 @@ bool FileJournal::read_entry(
   }
 
   stringstream errss;
-  if (seq < header.committed_up_to) {
+  if (seq && seq < header.committed_up_to) {
     derr << "Unable to read past sequence " << seq
         << " but header indicates the journal has committed up through "
         << header.committed_up_to << ", journal is corrupt" << dendl;