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

Method reencode_full_map

src/mon/OSDMonitor.cc:4691–4702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4689}
4690
4691void OSDMonitor::reencode_full_map(bufferlist& bl, uint64_t features)
4692{
4693 OSDMap m;
4694 auto q = bl.cbegin();
4695 m.decode(q);
4696 // always encode with subset of osdmap's canonical features
4697 uint64_t f = features & m.get_encoding_features();
4698 dout(20) << __func__ << " " << m.get_epoch() << " with features " << f
4699 << dendl;
4700 bl.clear();
4701 m.encode(bl, f | CEPH_FEATURE_RESERVED);
4702}
4703
4704int OSDMonitor::get_version(version_t ver, uint64_t features, bufferlist& bl)
4705{

Callers

nothing calls this directly

Calls 6

get_encoding_featuresMethod · 0.80
cbeginMethod · 0.45
decodeMethod · 0.45
get_epochMethod · 0.45
clearMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected