From: Xiubo Li Date: Wed, 10 May 2023 01:43:31 +0000 (+0800) Subject: message: make MClientReply inherit MMDSOp X-Git-Tag: v17.2.7~190^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb5496b1dcda8fbaff97b3ecc494a044140c5870;p=ceph.git message: make MClientReply inherit MMDSOp This will allow the MDS could handle the MClientReply requests. Fixes: https://tracker.ceph.com/issues/58340 Signed-off-by: Xiubo Li (cherry picked from commit 4e039349ebc52309a593e98f04874a027c92de50) --- diff --git a/src/messages/MClientReply.h b/src/messages/MClientReply.h index 5606b8ced959..75700e27e5fd 100644 --- a/src/messages/MClientReply.h +++ b/src/messages/MClientReply.h @@ -305,7 +305,7 @@ public: } __attribute__ ((__may_alias__)); WRITE_CLASS_ENCODER(openc_response_t) -class MClientReply final : public SafeMessage { +class MClientReply final : public MMDSOp { public: // reply data struct ceph_mds_reply_head head {}; @@ -329,9 +329,9 @@ public: bool is_safe() const { return head.safe; } protected: - MClientReply() : SafeMessage{CEPH_MSG_CLIENT_REPLY} {} + MClientReply() : MMDSOp{CEPH_MSG_CLIENT_REPLY} {} MClientReply(const MClientRequest &req, int result = 0) : - SafeMessage{CEPH_MSG_CLIENT_REPLY} { + MMDSOp{CEPH_MSG_CLIENT_REPLY} { memset(&head, 0, sizeof(head)); header.tid = req.get_tid(); head.op = req.get_op();