From: Max Kellermann Date: Wed, 16 Oct 2024 18:30:09 +0000 (+0200) Subject: include/CompatSet: remove the FeatureSet ctor X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2718fd2792afd9c1febeadcd07011daf0421cab7;p=ceph.git include/CompatSet: remove the FeatureSet ctor Signed-off-by: Max Kellermann --- diff --git a/src/include/CompatSet.h b/src/include/CompatSet.h index f56ce49aa4d..9ab3794adec 100644 --- a/src/include/CompatSet.h +++ b/src/include/CompatSet.h @@ -35,7 +35,7 @@ struct CompatSet { }; class FeatureSet { - uint64_t mask; + uint64_t mask = 1; std::map names; public: @@ -45,7 +45,7 @@ struct CompatSet { friend class CephCompatSet_merge_Test; friend std::ostream& operator<<(std::ostream& out, const CompatSet::FeatureSet& fs); friend std::ostream& operator<<(std::ostream& out, const CompatSet& compat); - FeatureSet() : mask(1), names() {} + void insert(const Feature& f) { ceph_assert(f.id > 0); ceph_assert(f.id < 64);