]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
message: make MClientReply inherit MMDSOp
authorXiubo Li <xiubli@redhat.com>
Wed, 10 May 2023 01:43:31 +0000 (09:43 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 May 2023 05:28:03 +0000 (13:28 +0800)
This will allow the MDS could handle the MClientReply requests.

Fixes: https://tracker.ceph.com/issues/58340
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/messages/MClientReply.h

index 51d8754da300fb365aa89e92a85642bd4fe9136a..be33fad494913d810cc0e0f1971e1f4fa0e64a45 100644 (file)
@@ -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();