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:
Dimitrios Siganos 2022-02-07 14:45:57 +00:00 committed by GitHub
commit e3e6ce8218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -86,8 +86,12 @@ std::string nano::thread_role::get_string (nano::thread_role::name role)
break;
case nano::thread_role::name::election_scheduler:
thread_role_name_string = "Election Sched";
break;
case nano::thread_role::name::unchecked:
thread_role_name_string = "Unchecked";
break;
default:
debug_assert (false && "nano::thread_role::get_string unhandled thread role");
}
/*

View file

@ -43,6 +43,7 @@ namespace thread_role
election_scheduler,
unchecked,
};
/*
* Get/Set the identifier for the current thread
*/