Minor bugfix for election scheduler thread name (#3713)
The bug was introduced by commit:
8b42872977:
"Create nano::unchecked_map ADT which is ..."
Missing break which caused the election scheduler
thread name to be wrong.
The bug was found by @fikumikudev, many thanks!
This commit is contained in:
parent
d17d2c4364
commit
e3e6ce8218
2 changed files with 5 additions and 0 deletions
|
|
@ -86,8 +86,12 @@ std::string nano::thread_role::get_string (nano::thread_role::name role)
|
||||||
break;
|
break;
|
||||||
case nano::thread_role::name::election_scheduler:
|
case nano::thread_role::name::election_scheduler:
|
||||||
thread_role_name_string = "Election Sched";
|
thread_role_name_string = "Election Sched";
|
||||||
|
break;
|
||||||
case nano::thread_role::name::unchecked:
|
case nano::thread_role::name::unchecked:
|
||||||
thread_role_name_string = "Unchecked";
|
thread_role_name_string = "Unchecked";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
debug_assert (false && "nano::thread_role::get_string unhandled thread role");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ namespace thread_role
|
||||||
election_scheduler,
|
election_scheduler,
|
||||||
unchecked,
|
unchecked,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get/Set the identifier for the current thread
|
* Get/Set the identifier for the current thread
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue