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

Method decode

src/mon/MonMap.cc:89–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void mon_info_t::decode(ceph::buffer::list::const_iterator& p)
90{
91 DECODE_START(6, p);
92 decode(name, p);
93 decode(public_addrs, p);
94 if (struct_v >= 2) {
95 decode(priority, p);
96 }
97 if (struct_v >= 4) {
98 decode(weight, p);
99 }
100 if (struct_v >= 5) {
101 decode(crush_loc, p);
102 }
103 if (struct_v >= 6) {
104 decode(time_added, p);
105 }
106 DECODE_FINISH(p);
107}
108
109void mon_info_t::print(ostream& out) const
110{

Callers

nothing calls this directly

Calls 6

decode_rawFunction · 0.85
decodeFunction · 0.70
entity_addrvec_tClass · 0.50
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected