diff options
author | Samuel Just <sam.just@inktank.com> | 2013-04-09 15:14:19 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-04-10 12:48:02 -0700 |
commit | 170d4a3d794260476ecde1e5e2ee719b7cb3ffd1 (patch) | |
tree | 7f00c098b6f6a6c6280189848d7fe546c3193980 | |
parent | 90c256d757a62fc8cc253d4db5ec5e66605048c6 (diff) | |
download | ceph-170d4a3d794260476ecde1e5e2ee719b7cb3ffd1.tar.gz |
FileJournal: start_seq is seq+1 if journalq.empty()
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>
-rw-r--r-- | src/os/FileJournal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index c283926b24c..d8a6f5a1a68 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -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(); |