Lines Matching defs:hosts
20 /* sql servers on different hosts. It assumes that the underlying data
92 /* .IP hosts
93 /* List of hosts to connect to.
117 /* against any database called "vmailer_info" located on hosts
134 /* hosts = host1.some.domain\fR \fBhost2.some.domain
138 /* .IP hosts
139 /* List of hosts to connect to.
144 /* against any database called "vmailer_info" located on hosts
161 /* hosts = host1.some.domain\fR \fBhost2.some.domain
229 int len_hosts; /* number of hosts */
230 HOST **db_hosts; /* the hosts on which the databases
246 ARGV *hosts;
418 /* try not to hammer the dead hosts too often */
473 * Try the remaining hosts. "count" is a safety net, in case the loop
474 * takes more than RETRY_CONN_INTV and the dead hosts are no longer
625 char *hosts;
682 hosts = cfg_get_str(p, "hosts", "", 0, 0);
684 dict_mysql->hosts = argv_split(hosts, " ,\t\r\n");
685 if (dict_mysql->hosts->argc == 0) {
686 argv_add(dict_mysql->hosts, "localhost", ARGV_END);
687 argv_terminate(dict_mysql->hosts);
690 myname, mysqlcf, dict_mysql->hosts->argv[0]);
692 myfree(hosts);
727 dict_mysql->pldb = plmysql_init(dict_mysql->hosts);
738 static PLMYSQL *plmysql_init(ARGV *hosts)
746 PLDB->len_hosts = hosts->argc;
747 if ((PLDB->db_hosts = (HOST **) mymalloc(sizeof(HOST *) * hosts->argc)) == 0)
749 for (i = 0; i < hosts->argc; i++)
750 PLDB->db_hosts[i] = host_init(hosts->argv[i]);
827 if (dict_mysql->hosts)
828 argv_free(dict_mysql->hosts);