]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FileJournal: start_seq is seq+1 if journalq.empty()
authorSamuel Just <sam.just@inktank.com>
Tue, 9 Apr 2013 22:14:19 +0000 (15:14 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 10 Apr 2013 19:48:02 +0000 (12:48 -0700)
This is also the same as journaled_seq + 1 for writeahead
journaling, but not for parallel journaling.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileJournal.cc

index c283926b24ce6856c1f085f9d168927218e0be1f..d8a6f5a1a68062e9e35b240e55e2ebdf767134b8 100644 (file)
@@ -1538,7 +1538,7 @@ void FileJournal::committed_thru(uint64_t seq)
     header.start_seq = journalq.front().first;
   } else {
     header.start = write_pos;
-    header.start_seq = journaled_seq + 1;
+    header.start_seq = seq + 1;
   }
   must_write_header = true;
   print_header();