Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
// ---------------------
// PGMapDigest
+PGMapDigest::PGMapDigest() noexcept = default;
+PGMapDigest::~PGMapDigest() noexcept = default;
+
void PGMapDigest::encode(bufferlist& bl, uint64_t features) const
{
// NOTE: see PGMap::encode_digest
return avail / osd_map.pool_raw_used_rate(poolid);
}
+PGMap::PGMap() noexcept
+ : version(0),
+ last_osdmap_epoch(0), last_pg_scan(0)
+{}
+
+PGMap::~PGMap() noexcept = default;
+
int64_t PGMap::get_rule_avail(const OSDMap& osdmap, int ruleno) const
{
map<int,float> wm;
class PGMapDigest {
public:
MEMPOOL_CLASS_HELPERS();
- virtual ~PGMapDigest() {}
+
+ PGMapDigest() noexcept;
+ virtual ~PGMapDigest() noexcept;
mempool::pgmap::vector<uint64_t> osd_last_seq;
static const int STUCK_STALE = (1<<4);
static const int STUCK_PEERING = (1<<5);
- PGMap()
- : version(0),
- last_osdmap_epoch(0), last_pg_scan(0)
- {}
+ PGMap() noexcept;
+ ~PGMap() noexcept;
version_t get_version() const {
return version;