Call it when we queue the submitted write. For ReplicatedPG this is
inside submit_transaction(), and for ECBackend it's when we finally
submit the write for disk (possibly delayed by a read/modify/write).
Signed-off-by: Sage Weil <sage@redhat.com>
tls.push_back(std::move(op.t));
tls.push_back(std::move(localt));
get_parent()->queue_transactions(tls, msg);
+ get_parent()->op_applied(op.at_version);
}
void ECBackend::handle_sub_read(
virtual void release_locks(ObcLockManager &manager) = 0;
+ virtual void op_applied(
+ const eversion_t &applied_version) = 0;
+
virtual bool should_send_op(
pg_shard_t peer,
const hobject_t &hoid) = 0;
repop->rep_tid,
ctx->reqid,
ctx->op);
- op_applied(ctx->at_version);
}
PrimaryLogPG::RepGather *PrimaryLogPG::new_repop(
append_log(logv, trim_to, roll_forward_to, t, transaction_applied);
}
- void op_applied(const eversion_t &applied_version); // remove me
+ void op_applied(const eversion_t &applied_version) override;
bool should_send_op(
pg_shard_t peer,
tls.push_back(std::move(op_t));
parent->queue_transactions(tls, op.op);
+ parent->op_applied(at_version);
}
void ReplicatedBackend::op_commit(