]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: un-inline methods to reduce compile times
authorMax Kellermann <max.kellermann@ionos.com>
Wed, 13 Nov 2024 20:38:36 +0000 (21:38 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 16 Sep 2025 10:42:05 +0000 (12:42 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mon/PGMap.cc
src/mon/PGMap.h

index 76897623e74cbf58d58af0748c7b74bf9ee83c35..f2b158d2ca331bb5cdd70dd6026fc844b392b534 100644 (file)
@@ -53,6 +53,9 @@ MEMPOOL_DEFINE_OBJECT_FACTORY(PGMap::Incremental, pgmap_inc, pgmap);
 // ---------------------
 // PGMapDigest
 
+PGMapDigest::PGMapDigest() noexcept = default;
+PGMapDigest::~PGMapDigest() noexcept = default;
+
 void PGMapDigest::encode(bufferlist& bl, uint64_t features) const
 {
   // NOTE: see PGMap::encode_digest
@@ -1009,6 +1012,13 @@ int64_t PGMapDigest::get_pool_free_space(const OSDMap &osd_map,
   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;
index b60a1769c41961fcd59b3d625bce7b4c9264a27f..acc94de5cc1028b6f5fb3d15fe707f2cd1e31d9d 100644 (file)
@@ -45,7 +45,9 @@ class TextTable;
 class PGMapDigest {
 public:
   MEMPOOL_CLASS_HELPERS();
-  virtual ~PGMapDigest() {}
+
+  PGMapDigest() noexcept;
+  virtual ~PGMapDigest() noexcept;
 
   mempool::pgmap::vector<uint64_t> osd_last_seq;
 
@@ -387,10 +389,8 @@ public:
   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;