]> 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 50733/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 02:00:08 +0000 (10:00 +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 d163bace7592976e8c7d67570e13fdb5c69015b1..516fdb5e2d79032e2478a8a7c8089b4630c389b0 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));