It is perfectly fine to read events that are older than the fs's seq from
the journal; open() will skip them when positioning the read pointer on
open.
Also, this code is nonsensical; it always failed the assertion.
Signed-off-by: Sage Weil <sage@newdream.net>
return false;
}
- if (h->seq < last_committed_seq) {
- dout(0) << "read_entry seq " << seq << " < last_committed_seq " << last_committed_seq << dendl;
- assert(h->seq >= last_committed_seq);
- return false;
- }
-
// ok!
seq = h->seq;
journalq.push_back(pair<uint64_t,off64_t>(h->seq, read_pos));