notifications of SONS should get restrict to sons functionality

This commit is contained in:
pbattu123 2020-03-16 22:32:35 -03:00
parent 3ffcd4fdd0
commit c0d515b93f

View file

@ -558,6 +558,9 @@ void database::update_active_sons()
} }
} }
//restrict below code snippet to sons functionality
if(cur_active_sons.size() || new_active_sons.size())
{
if (son_sets_equal) { if (son_sets_equal) {
ilog( "Active SONs set NOT CHANGED" ); ilog( "Active SONs set NOT CHANGED" );
} else { } else {
@ -648,6 +651,7 @@ void database::update_active_sons()
} }
} }
} }
}
modify(gpo, [&]( global_property_object& gp ){ modify(gpo, [&]( global_property_object& gp ){
gp.active_sons.clear(); gp.active_sons.clear();