@@ -291,10 +291,6 @@ void ReplicationStateMachine::on_destroy(const homestore::group_id_t& group_id)
291291 const auto pg_id = PG_ID.value ();
292292 home_object_->pg_destroy (pg_id);
293293 LOGI (" replica destroyed, cleared pg={} resources with group_id={}" , pg_id, boost::uuids::to_string (group_id));
294-
295- // we want the scrub_seq_num to keep the same when BR happens. so we only remove it from scrub manager when the
296- // group is destroyed at this replica, so that BR will not delete/change the pg scrub superblk.
297-
298294 // there is a case that after pg is destroyed above and crash happends before scrub_mgr#remove_pg is called, there
299295 // will be a stale pg_scrub_superblk. we will handle this in metablk replay.
300296 home_object_->scrub_manager ()->remove_pg (pg_id);
@@ -1064,6 +1060,7 @@ void ReplicationStateMachine::on_become_leader(const homestore::group_id_t& grou
10641060 }
10651061 const auto pg_id = pg_id_opt.value ();
10661062 RELEASE_ASSERT (home_object_->pg_exists (pg_id), " pg={} should exist, but not! fatal error!" , pg_id);
1063+ // TODO:: add whatever acitons needed to be take.
10671064}
10681065
10691066void ReplicationStateMachine::on_become_follower (const homestore::group_id_t & group_id) {
@@ -1076,7 +1073,7 @@ void ReplicationStateMachine::on_become_follower(const homestore::group_id_t& gr
10761073 RELEASE_ASSERT (home_object_->pg_exists (pg_id), " pg={} should exist, but not! fatal error!" , pg_id);
10771074
10781075 LOGI (" become follower of group {}, cancel scrub task for pg={}" , group_id, pg_id);
1079- // add whatever acitons needed to be take.
1076+ // TODO:: add whatever acitons needed to be take.
10801077
10811078 // cancel scrub task if I am not leader again.
10821079 home_object_->scrub_manager ()->cancel_scrub_task (pg_id);
0 commit comments