Lines Matching refs:hr_role

108 			PJDLOG_VERIFY(res->hr_role == HAST_ROLE_SECONDARY ||  in descriptors_cleanup()
185 role2str(res->hr_role)); in descriptors_assert()
238 } else if (res->hr_role == HAST_ROLE_PRIMARY && in descriptors_assert()
252 } else if (res->hr_role == HAST_ROLE_SECONDARY && in descriptors_assert()
261 } else if (res->hr_role == HAST_ROLE_SECONDARY && in descriptors_assert()
275 } else if (res->hr_role == HAST_ROLE_SECONDARY && in descriptors_assert()
301 role2str(res->hr_role)); in descriptors_assert()
345 role2str(res->hr_role)); in child_exit()
348 if (res->hr_role == HAST_ROLE_PRIMARY) { in child_exit()
360 res->hr_role = HAST_ROLE_INIT; in child_exit()
362 role2str(res->hr_role)); in child_exit()
380 if (res0->hr_role == HAST_ROLE_INIT || in resource_needs_restart()
381 res0->hr_role == HAST_ROLE_SECONDARY) { in resource_needs_restart()
415 if (res0->hr_role != HAST_ROLE_PRIMARY) in resource_needs_reload()
443 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY); in resource_reload()
668 role = cres->hr_role; in hastd_reload()
732 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers()
737 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers()
837 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in listen_accept()
846 if (res->hr_role != HAST_ROLE_SECONDARY) { in listen_accept()
848 role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY), in listen_accept()
852 role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY)); in listen_accept()
853 if (res->hr_role == HAST_ROLE_PRIMARY) { in listen_accept()
991 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in connection_migrate()
993 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY); in connection_migrate()
1101 if (res->hr_role == HAST_ROLE_PRIMARY) { in main_loop()
1162 if (res->hr_role == HAST_ROLE_PRIMARY) { in main_loop()