return 0;
}
-int BlueStore::_init_alloc(std::map<uint64_t, uint64_t> *zone_adjustments)
+int BlueStore::_init_alloc()
{
int r = _create_alloc();
if (r < 0) {
return 0;
}
-void BlueStore::_post_init_alloc(const std::map<uint64_t, uint64_t>& zone_adjustments)
+void BlueStore::_post_init_alloc()
{
int r = 0;
if (fm->is_null_manager()) {
}
}
- // SMR devices may require a freelist adjustment, but that can only happen after
- // the db is read-write. we'll stash pending changes here.
- std::map<uint64_t, uint64_t> zone_adjustments;
-
int r = _open_path();
if (r < 0)
return r;
if (r < 0)
goto out_db;
- r = _init_alloc(&zone_adjustments);
+ r = _init_alloc();
if (r < 0)
goto out_fm;
}
if (!read_only) {
- _post_init_alloc(zone_adjustments);
+ _post_init_alloc();
}
// when function is called in repair mode (to_repair=true) we skip db->open()/create()
void _close_fm();
int _write_out_fm_meta(uint64_t target_size);
int _create_alloc();
- int _init_alloc(std::map<uint64_t, uint64_t> *zone_adjustments);
- void _post_init_alloc(const std::map<uint64_t, uint64_t>& zone_adjustments);
+ int _init_alloc();
+ void _post_init_alloc();
void _close_alloc();
int _open_collections();
void _fsck_collections(int64_t* errors);