@@ -73,7 +73,7 @@ class HomeBlocksImpl : public HomeBlocks, public VolumeManager, public std::enab
73
73
std::unordered_map< std::string, shared< VolumeIndexTable > > idx_tbl_map_;
74
74
75
75
bool recovery_done_{false };
76
- std::mutex sb_lock_;
76
+ std::mutex sb_lock_; // this lock is only used when FC is triggered;
77
77
superblk< homeblks_sb_t > sb_;
78
78
peer_id_t our_uuid_;
79
79
shared< VolumeChunkSelector > chunk_selector_;
@@ -84,7 +84,6 @@ class HomeBlocksImpl : public HomeBlocks, public VolumeManager, public std::enab
84
84
std::atomic< bool > is_restricted_{false }; // avoid taking lock in IO path;
85
85
86
86
folly::Promise< folly::Unit > shutdown_promise_;
87
- iomgr::io_fiber_t reaper_fiber_;
88
87
iomgr::timer_handle_t vol_gc_timer_hdl_{iomgr::null_timer_handle};
89
88
iomgr::timer_handle_t shutdown_timer_hdl_{iomgr::null_timer_handle};
90
89
@@ -226,7 +225,7 @@ class HBFCSvcCB : public homestore::FaultContainmentCallback {
226
225
227
226
void on_fault_containment (const homestore::FaultContainmentEvent event, void * cookie,
228
227
const std::string& reason) override {
229
- if (event == homestore::FaultContainmentEvent::ENTER_GLOABLE ) {
228
+ if (event == homestore::FaultContainmentEvent::ENTER_GLOBAL ) {
230
229
hb_->fault_containment (nullptr );
231
230
LOGI (" Global fault containment event received, reason: {}" , reason);
232
231
DEBUG_ASSERT (cookie == nullptr , " Global fault containment event should not have a cookie" );
0 commit comments