return _more;
}
+MDRequestImpl::More const* MDRequestImpl::more() const
+{
+ ceph_assert(_more);
+ return _more;
+}
+
bool MDRequestImpl::has_more() const
{
return _more != nullptr;
MutationImpl::drop_local_auth_pins();
}
-const filepath& MDRequestImpl::get_filepath()
+const filepath& MDRequestImpl::get_filepath() const
{
if (client_request)
return client_request->get_filepath();
return more()->filepath1;
}
-const filepath& MDRequestImpl::get_filepath2()
+const filepath& MDRequestImpl::get_filepath2() const
{
if (client_request)
return client_request->get_filepath2();
os << "peer_request:" << reqid;
} else if (internal_op >= 0) {
os << "internal op " << ceph_mds_op_name(internal_op) << ":" << reqid;
+ if (has_more()) {
+ auto& fp = get_filepath();
+ if (!fp.empty()) {
+ os << " fp=" << fp;
+ }
+ auto& fp2 = get_filepath2();
+ if (!fp2.empty()) {
+ os << " fp2=" << fp2;
+ }
+ }
} else {
// drat, it's triggered by a peer request, but we don't have a message
// FIXME
~MDRequestImpl() override;
More* more();
+ More const* more() const;
bool has_more() const;
bool has_witnesses();
bool peer_did_prepare();
void drop_local_auth_pins();
void set_ambiguous_auth(CInode *inode);
void clear_ambiguous_auth();
- const filepath& get_filepath();
- const filepath& get_filepath2();
+ const filepath& get_filepath() const;
+ const filepath& get_filepath2() const;
void set_filepath(const filepath& fp);
void set_filepath2(const filepath& fp);
bool is_queued_for_replay() const;