Skip to content

Commit

Permalink
Fix device_manager ut
Browse files Browse the repository at this point in the history
previously we have use-after-release as during restart HS
all chunk are released. But after restart we dont refresh our
vdev vector which still refering to old chunks.

Signed-off-by: Xiaoxi Chen <[email protected]>
  • Loading branch information
xiaoxichen committed Apr 16, 2024
1 parent add6fd2 commit e9f06ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/test_device_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class DeviceMgrTest : public ::testing::Test {
});
m_dmgr->is_first_time_boot() ? m_dmgr->format_devices() : m_dmgr->load_devices();
m_pdevs = m_dmgr->get_pdevs_by_dev_type(homestore::HSDevType::Data);
m_vdevs = m_dmgr->get_vdevs();
}

void restart() {
Expand Down

0 comments on commit e9f06ce

Please sign in to comment.