]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: memset the head by default to fix the readable.sh test failure 50732/head
authorXiubo Li <xiubli@redhat.com>
Mon, 27 Feb 2023 04:55:59 +0000 (12:55 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 30 Mar 2023 01:56:09 +0000 (09:56 +0800)
Introduced-by: cbd7e304020(ceph_fs.h: add 32 bits extended num_retry and num_fwd support)
Fixes: https://tracker.ceph.com/issues/58853
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 9d1137657a4a23f4c13a89aa4658ecc2c13222c9)

src/messages/MClientRequest.h

index 6c05d3d9ecf58f8c80dfa252570bb09703581140..4a6a21d3c5503195fba93997888ded3863d8c74d 100644 (file)
@@ -108,7 +108,9 @@ public:
 protected:
   // cons
   MClientRequest()
-    : MMDSOp(CEPH_MSG_CLIENT_REQUEST, HEAD_VERSION, COMPAT_VERSION) {}
+    : MMDSOp(CEPH_MSG_CLIENT_REQUEST, HEAD_VERSION, COMPAT_VERSION) {
+    memset(&head, 0, sizeof(head));
+  }
   MClientRequest(int op, bool over=true)
     : MMDSOp(CEPH_MSG_CLIENT_REQUEST, HEAD_VERSION, COMPAT_VERSION) {
     memset(&head, 0, sizeof(head));