OPTION(journal_queue_max_ops, OPT_INT, 500)
OPTION(journal_queue_max_bytes, OPT_INT, 100 << 20)
OPTION(journal_align_min_size, OPT_INT, 64 << 10) // align data payloads >= this.
+OPTION(journal_replay_from, OPT_INT, 0)
OPTION(bdev_lock, OPT_BOOL, true)
OPTION(bdev_iothreads, OPT_INT, 1) // number of ios to queue with kernel
OPTION(bdev_idle_kick_after_ms, OPT_INT, 100) // ms
int JournalingObjectStore::journal_replay(uint64_t fs_op_seq)
{
dout(10) << "journal_replay fs op_seq " << fs_op_seq << dendl;
+
+ if (g_conf->journal_replay_from) {
+ dout(0) << "journal_replay forcing replay from " << g_conf->journal_replay_from
+ << " instead of " << fs_op_seq << dendl;
+ // the previous op is the last one committed
+ fs_op_seq = g_conf->journal_replay_from - 1;
+ }
+
op_seq = fs_op_seq;
committed_seq = op_seq;
- committing_seq = op_seq;
+ committing_seq = op_seq;
applied_seq = fs_op_seq;
if (!journal)