Fix partition reuse

rm-left-on-dead
Vitaliy Filippov 2022-09-02 23:32:25 +03:00
parent eecbfb66ce
commit 68ebe5993a
1 changed files with 1 additions and 1 deletions

View File

@ -390,9 +390,9 @@ std::vector<std::string> disk_tool_t::get_new_data_parts(vitastor_dev_info_t & d
stderr, "%s is already initialized for OSD %lu, skipping\n",
part["node"].string_value().c_str(), sb["params"]["osd_num"].uint64_value()
);
osds_exist++;
osds_size += part["size"].uint64_value()*dev.pt["sectorsize"].uint64_value();
}
osds_exist++;
}
}
// Still create OSD(s) if a disk has no more than (max_other_percent) other data