summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-04-09 15:13:38 -0700
committerSamuel Just <sam.just@inktank.com>2013-04-10 12:48:02 -0700
commit90c256d757a62fc8cc253d4db5ec5e66605048c6 (patch)
tree2db6254bfe5c31bd0bd0fb6fe2ee96ea62c26500
parenta4fa0a82007217ba5a71b5a7158fbfcb700fb4e7 (diff)
downloadceph-90c256d757a62fc8cc253d4db5ec5e66605048c6.tar.gz
FileJournal: fix off by one error in committed_thru
journalq.front().first is the sequence number of the entry at journalq.front().second. Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r--src/os/FileJournal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc
index c99f1662f33..c283926b24c 100644
--- a/src/os/FileJournal.cc
+++ b/src/os/FileJournal.cc
@@ -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;