]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: memset the head by default to fix the readable.sh test failure 50268/head
authorXiubo Li <xiubli@redhat.com>
Mon, 27 Feb 2023 04:55:59 +0000 (12:55 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 27 Feb 2023 09:37:34 +0000 (17:37 +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>
src/messages/MClientRequest.h

index 4835be2edff7d7bc2df4a4349fe8eca22639caa2..d8cec31531a9640e567361eac571307da9f62fa8 100644 (file)
@@ -111,7 +111,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));