MCPcopy Create free account
hub / github.com/ceph/ceph / encode

Method encode

src/mon/PGMap.cc:63–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61PGMapDigest::~PGMapDigest() noexcept = default;
62
63void PGMapDigest::encode(bufferlist& bl, uint64_t features) const
64{
65 // NOTE: see PGMap::encode_digest
66 uint8_t v = 5;
67 ceph_assert(HAVE_FEATURE(features, SERVER_NAUTILUS));
68 ENCODE_START(v, 1, bl);
69 encode(num_pg, bl);
70 encode(num_pg_active, bl);
71 encode(num_pg_unknown, bl);
72 encode(num_osd, bl);
73 encode(pg_pool_sum, bl, features);
74 encode(pg_sum, bl, features);
75 encode(osd_sum, bl, features);
76 encode(num_pg_by_state, bl);
77 encode(num_pg_by_osd, bl);
78 encode(num_pg_by_pool, bl);
79 encode(osd_last_seq, bl);
80 encode(per_pool_sum_delta, bl, features);
81 encode(per_pool_sum_deltas_stamps, bl);
82 encode(pg_sum_delta, bl, features);
83 encode(stamp_delta, bl);
84 encode(avail_space_by_rule, bl);
85 encode(purged_snaps, bl);
86 encode(osd_sum_by_class, bl, features);
87 encode(pool_pg_unavailable_map, bl);
88 ENCODE_FINISH(bl);
89}
90
91void PGMapDigest::decode(bufferlist::const_iterator& p)
92{

Callers 15

encode_pendingMethod · 0.45
write_featuresMethod · 0.45
bootstrapMethod · 0.45
handle_probe_probeMethod · 0.45
handle_probe_replyMethod · 0.45
send_latest_monmapMethod · 0.45
mkfsMethod · 0.45
encode_pendingMethod · 0.45
process_pg_map_commandFunction · 0.45
encodeFunction · 0.45

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected