]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FileJournal: fix off by one error in committed_thru
authorSamuel Just <sam.just@inktank.com>
Tue, 9 Apr 2013 22:13:38 +0000 (15:13 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 10 Apr 2013 19:48:02 +0000 (12:48 -0700)
journalq.front().first is the sequence number of the entry
at journalq.front().second.

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

index c99f1662f33527df0e84f5be91ca90612aebafd1..c283926b24ce6856c1f085f9d168927218e0be1f 100644 (file)
@@ -1535,7 +1535,7 @@ void FileJournal::committed_thru(uint64_t seq)
   }
   if (!journalq.empty()) {
     header.start = journalq.front().second;
-    header.start_seq = journalq.front().first + 1;
+    header.start_seq = journalq.front().first;
   } else {
     header.start = write_pos;
     header.start_seq = journaled_seq + 1;