mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
crush/CrushWrapper: clean up member init
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
dc7a219468
commit
4bea8b55d3
@ -74,12 +74,12 @@ public:
|
||||
std::map<int64_t, crush_choose_arg_map> choose_args;
|
||||
|
||||
private:
|
||||
struct crush_map *crush;
|
||||
struct crush_map *crush = nullptr;
|
||||
|
||||
bool have_uniform_rules = false;
|
||||
|
||||
/* reverse maps */
|
||||
mutable bool have_rmaps;
|
||||
mutable bool have_rmaps = false;
|
||||
mutable std::map<string, int> type_rmap, name_rmap, rule_name_rmap;
|
||||
void build_rmaps() const {
|
||||
if (have_rmaps) return;
|
||||
@ -98,7 +98,7 @@ public:
|
||||
CrushWrapper(const CrushWrapper& other);
|
||||
const CrushWrapper& operator=(const CrushWrapper& other);
|
||||
|
||||
CrushWrapper() : crush(0), have_rmaps(false) {
|
||||
CrushWrapper() {
|
||||
create();
|
||||
}
|
||||
~CrushWrapper() {
|
||||
|
Loading…
Reference in New Issue
Block a user