lock->get_type() == CEPH_LOCK_IPOLICY) &&
mds->is_cluster_degraded() &&
mdr->is_master() &&
- !mdr->is_replay()) {
+ !mdr->is_queued_for_replay()) {
// waiting for recovering mds, to guarantee replayed requests and mksnap/setlayout
// get processed in proper order.
bool wait = false;
assert(mdr->is_master());
if ((*p)->needs_recover()) {
if (mds->is_cluster_degraded()) {
- if (!mdr->is_replay()) {
+ if (!mdr->is_queued_for_replay()) {
// see comments in SimpleLock::set_state_rejoin() and
// ScatterLock::encode_state_for_rejoin()
drop_locks(mdr.get());
more()->filepath2 = fp;
}
-bool MDRequestImpl::is_replay() const
+bool MDRequestImpl::is_queued_for_replay() const
{
- return client_request ? client_request->is_replay() : false;
+ return client_request ? client_request->is_queued_for_replay() : false;
}
void MDRequestImpl::print(ostream &out) const
const filepath& get_filepath2();
void set_filepath(const filepath& fp);
void set_filepath2(const filepath& fp);
- bool is_replay() const;
+ bool is_queued_for_replay() const;
void print(ostream &out) const override;
void dump(Formatter *f) const override;