From bb5496b1dcda8fbaff97b3ecc494a044140c5870 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Wed, 10 May 2023 09:43:31 +0800 Subject: [PATCH] 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) --- src/messages/MClientReply.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.47.3