]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
messages/MOSDPing: initialize MOSDPing padding 15714/head
authorSage Weil <sage@redhat.com>
Fri, 16 Jun 2017 02:18:08 +0000 (22:18 -0400)
committerSage Weil <sage@redhat.com>
Fri, 16 Jun 2017 02:18:08 +0000 (22:18 -0400)
commit9beaf5efd74daa8c15e50b42583264d1252a85f5
treed9678a2739aa4f423de4c99e85b3bf9dd67ded08
parent9f574bc8265071a6940efad6701776a89a35c153
messages/MOSDPing: initialize MOSDPing padding

This memory must be initialized or else valgrind will be very unhappy.

Avoid the cost of zeroing (or even allocating) the buffer for normal
padding values by (re)using a static zero buffer.

Fixes: http://tracker.ceph.com/issues/20323
Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MOSDPing.h