summaryrefslogtreecommitdiffstats
path: root/src/messages
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2023-02-28 14:45:32 +0100
committerVenky Shankar <vshankar@redhat.com>2023-02-28 14:45:32 +0100
commit222c3e026987028c7681759227bd01473dc1267f (patch)
tree0a2028ae1e33f40a49577ece27c4f2e1267c979d /src/messages
parentMerge pull request #46601 from rkachach/fix_issue_55814 (diff)
parentmds: memset the head by default to fix the readable.sh test failure (diff)
downloadceph-222c3e026987028c7681759227bd01473dc1267f.tar.xz
ceph-222c3e026987028c7681759227bd01473dc1267f.zip
Merge PR #50268 into main
* refs/pull/50268/head: mds: memset the head by default to fix the readable.sh test failure Reviewed-by: Dhairya Parmar <dparmar@redhat.com> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'src/messages')
-rw-r--r--src/messages/MClientRequest.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messages/MClientRequest.h b/src/messages/MClientRequest.h
index 4835be2edff..d8cec31531a 100644
--- a/src/messages/MClientRequest.h
+++ b/src/messages/MClientRequest.h
@@ -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));