From 4e039349ebc52309a593e98f04874a027c92de50 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 --- 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 51d8754da300f..be33fad494913 100644 --- a/src/messages/MClientReply.h +++ b/src/messages/MClientReply.h @@ -312,7 +312,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 {}; @@ -347,9 +347,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.39.5