Lines Matching refs:hr_role
109 PJDLOG_VERIFY(res->hr_role == HAST_ROLE_SECONDARY ||
186 role2str(res->hr_role));
239 } else if (res->hr_role == HAST_ROLE_PRIMARY &&
253 } else if (res->hr_role == HAST_ROLE_SECONDARY &&
262 } else if (res->hr_role == HAST_ROLE_SECONDARY &&
276 } else if (res->hr_role == HAST_ROLE_SECONDARY &&
302 role2str(res->hr_role));
346 role2str(res->hr_role));
349 if (res->hr_role == HAST_ROLE_PRIMARY) {
361 res->hr_role = HAST_ROLE_INIT;
363 role2str(res->hr_role));
381 if (res0->hr_role == HAST_ROLE_INIT ||
382 res0->hr_role == HAST_ROLE_SECONDARY) {
416 if (res0->hr_role != HAST_ROLE_PRIMARY)
444 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY);
669 role = cres->hr_role;
733 res->hr_name, role2str(res->hr_role), res->hr_workerpid);
738 res->hr_name, role2str(res->hr_role), res->hr_workerpid);
838 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
847 if (res->hr_role != HAST_ROLE_SECONDARY) {
849 role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY),
853 role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY));
854 if (res->hr_role == HAST_ROLE_PRIMARY) {
992 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
994 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY);
1102 if (res->hr_role == HAST_ROLE_PRIMARY) {
1163 if (res->hr_role == HAST_ROLE_PRIMARY) {