]>
git.proxmox.com Git - ceph.git/blob - ceph/src/messages/MOSDPGCreated.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
6 #include "osd/osd_types.h"
7 #include "messages/PaxosServiceMessage.h"
9 class MOSDPGCreated
: public PaxosServiceMessage
{
13 : PaxosServiceMessage(MSG_OSD_PG_CREATED
, 0)
15 MOSDPGCreated(pg_t pgid
)
16 : PaxosServiceMessage(MSG_OSD_PG_CREATED
, 0),
19 const char *get_type_name() const override
{ return "pg_created"; }
20 void print(ostream
& out
) const override
{
21 out
<< "osd_pg_created(" << pgid
<< ")";
23 void encode_payload(uint64_t features
) override
{
25 ::encode(pgid
, payload
);
27 void decode_payload() override
{
28 auto p
= payload
.begin();