Lines Matching defs:serverInfo

524 	server_info_t	*serverInfo = (server_info_t *)arg;
538 (void) mutex_lock(&serverInfo->mutex[1]);
539 serverInfo->sinfo[1].type = INFO_RW_UNKNOWN;
540 serverInfo->sinfo[1].info_status =
548 (void) mutex_lock(&serverInfo->mutex[0]);
549 serverInfo->sinfo[1].prev_server_status =
550 serverInfo->sinfo[0].server_status;
551 (void) mutex_unlock(&serverInfo->mutex[0]);
553 serverInfo->sinfo[1].server_status =
555 if (serverInfo->sinfo[1].rootDSE_data)
556 free(serverInfo->sinfo[1].rootDSE_data);
557 serverInfo->sinfo[1].rootDSE_data = NULL;
558 if (serverInfo->sinfo[1].errormsg)
559 free(serverInfo->sinfo[1].errormsg);
560 serverInfo->sinfo[1].errormsg = NULL;
561 (void) mutex_unlock(&serverInfo->mutex[1]);
563 (void) mutex_lock(&serverInfo->mutex[1]);
564 serverInfo->sinfo[1].server_status = INFO_SERVER_CONNECTING;
565 (void) mutex_unlock(&serverInfo->mutex[1]);
577 if (rc = __ns_ldap_getRootDSE(serverInfo->sinfo[1].addr,
581 (void) mutex_lock(&serverInfo->mutex[1]);
582 serverInfo->sinfo[1].server_status = INFO_SERVER_ERROR;
583 serverInfo->sinfo[1].info_status = INFO_STATUS_ERROR;
585 serverInfo->sinfo[1].errormsg = strdup(error->message);
589 " server"), serverInfo->sinfo[1].addr, rc);
590 serverInfo->sinfo[1].errormsg = strdup(errmsg);
599 serverInfo->sinfo[1].errormsg);
601 (void) mutex_unlock(&serverInfo->mutex[1]);
603 * sync sinfo copies in the serverInfo.
606 sync_current_with_update_copy(serverInfo);
610 (void) mutex_lock(&serverInfo->mutex[1]);
613 serverInfo->sinfo[1].type = INFO_RW_WRITEABLE;
614 serverInfo->sinfo[1].server_status = INFO_SERVER_UP;
615 serverInfo->sinfo[1].info_status = INFO_STATUS_NEW;
618 serverInfo->sinfo[1].rootDSE_data = rootDSE;
622 (void) mutex_unlock(&serverInfo->mutex[1]);
625 * sync sinfo copies in the serverInfo.
628 sync_current_with_update_copy(serverInfo);
747 "invalid serverInfo list.\n");
791 "invalid serverInfo list.\n");
815 "empty serverInfo list.\n");
917 "invalid serverInfo list.\n");
1181 "invalid serverInfo list.\n");
1621 static server_info_t *serverInfo = NULL;
1676 serverInfo = serverInfo_1;
1693 (void) getldap_set_serverInfo(serverInfo, 1, INFO_OP_CREATE);
1701 (void) getldap_set_refresh_ttl(serverInfo,
1734 if (serverInfo_old != serverInfo)
1741 serverInfo_old = serverInfo;
1754 if (serverInfo)
1755 (void) getldap_destroy_serverInfo(serverInfo);
1756 serverInfo = NULL;
1774 if (serverInfo) {
1776 (void) getldap_set_serverInfo(serverInfo, 0,
1787 (void) getldap_set_refresh_ttl(serverInfo,
1870 * serverInfo_old is equal to serverInfo
1933 (void) getldap_set_refresh_ttl(serverInfo,
1979 if (serverInfo) {
1980 (void) getldap_get_server_stat(serverInfo,