summaryrefslogtreecommitdiffstats
path: root/src/msg/Message.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg/Message.h')
-rw-r--r--src/msg/Message.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/msg/Message.h b/src/msg/Message.h
index 3e5c58ec376..80d2295c89f 100644
--- a/src/msg/Message.h
+++ b/src/msg/Message.h
@@ -136,6 +136,8 @@
#define MSG_OSD_PG_UPDATE_LOG_MISSING 114
#define MSG_OSD_PG_UPDATE_LOG_MISSING_REPLY 115
+#define MSG_OSD_PG_PCT 136
+
#define MSG_OSD_PG_CREATED 116
#define MSG_OSD_REP_SCRUBMAP 117
#define MSG_OSD_PG_RECOVERY_DELETE 118
@@ -262,8 +264,8 @@ public:
#endif
protected:
- ceph_msg_header header; // headerelope
- ceph_msg_footer footer;
+ ceph_msg_header header{}; // headerelope
+ ceph_msg_footer footer{};
ceph::buffer::list payload; // "front" unaligned blob
ceph::buffer::list middle; // "middle" unaligned blob
ceph::buffer::list data; // data payload (page-alignment will be preserved where possible)
@@ -332,16 +334,11 @@ protected:
friend class Messenger;
public:
- Message() {
- memset(&header, 0, sizeof(header));
- memset(&footer, 0, sizeof(footer));
- }
+ Message() = default;
Message(int t, int version=1, int compat_version=0) {
- memset(&header, 0, sizeof(header));
header.type = t;
header.version = version;
header.compat_version = compat_version;
- memset(&footer, 0, sizeof(footer));
}
Message *get() {