extern int log_flags, errno;
int gqval();
-
+char *whoami;
/* declared global so that we can get the current time from different places. */
struct timeval tv;
qargv[1] = "dontcare";
qargv[2] = "false";
sq = sq_create();
- if (status = mr_query_with_retry("qualified_get_server", 3, qargv,
- qgetsv, sq)) {
+ if (status = mr_query("qualified_get_server", 3, qargv, qgetsv, sq)) {
com_err(whoami, status, " getting services");
leave("query failed");
}
sprintf(dfgen_cmd, "exec %s %s/%s.out",
dfgen_prog, DCM_DIR, service);
gettimeofday(&tv, &tz);
- if (status = mr_query_with_retry("get_server_info", 1, qargv,
- getsvinfo, &svc)) {
+ if (status = mr_query("get_server_info", 1, qargv, getsvinfo, &svc)) {
com_err(whoami, status, " getting service %s info, skipping to next service", service);
continue;
}
qargv[3] = strsave("1");
qargv[4] = strsave("0");
qargv[5] = strsave("");
- status = mr_query_with_retry("set_server_internal_flags", 6,
- qargv, scream, NULL);
+ status = mr_query("set_server_internal_flags", 6,
+ qargv, scream, NULL);
if (status != MR_SUCCESS) {
com_err(whoami, status, " setting server state");
goto free_service;
free_service:
free(qargv[3]);
qargv[3] = strsave("0");
- status = mr_query_with_retry("set_server_internal_flags", 6,
- qargv, scream, NULL);
+ status = mr_query("set_server_internal_flags", 6,
+ qargv, scream, NULL);
if (status)
com_err(whoami, status, " setting service state");
close(lock_fd);
argv[1] = "TRUE";
argv[2] = argv[3] = argv[4] = "DONTCARE";
argv[5] = "FALSE";
- status = mr_query_with_retry("qualified_get_server_host", 6, argv,
- qgethost, sq);
+ status = mr_query("qualified_get_server_host", 6, argv, qgethost, sq);
if (status == MR_NO_MATCH) {
return;
} else if (status) {
if (dbg & DBG_TRACE)
com_err(whoami, 0, "checking %s...", machine);
argv[1] = machine;
- status = mr_query_with_retry("get_server_host_info", 2, argv,
- gethostinfo, &shost);
+ status = mr_query("get_server_host_info", 2, argv,
+ gethostinfo, &shost);
if (status) {
com_err(whoami,status, " getting server_host_info for %s", machine);
goto free_mach;
argv[6] = strsave("");
argv[7] = itoa(tv.tv_sec);
argv[8] = itoa(shost.lastsuccess);
- status = mr_query_with_retry("set_server_host_internal", 9, argv,
- scream, NULL);
+ status = mr_query("set_server_host_internal", 9, argv, scream, NULL);
if (status != MR_SUCCESS) {
com_err(whoami,status," while setting internal state for %s:%s",
svc->service, machine);
qargv[3] = strsave("0");
qargv[4] = itoa(svc->harderror);
qargv[5] = strsave(svc->errmsg);
- status = mr_query_with_retry("set_server_internal_flags",
- 6, qargv, scream, NULL);
+ status = mr_query("set_server_internal_flags",
+ 6, qargv, scream, NULL);
if (status)
com_err(whoami, status, " setting service state again");
free(qargv[0]);
free(qargv[4]);
free(qargv[5]);
close(lock_fd);
- status = mr_query_with_retry("set_server_host_internal",
- 9, argv,scream,NULL);
+ status = mr_query("set_server_host_internal",
+ 9, argv,scream,NULL);
free(argv[2]);
free(argv[5]);
if (status)
}
}
close(lock_fd);
- status = mr_query_with_retry("set_server_host_internal", 9, argv,
- scream, NULL);
+ status = mr_query("set_server_host_internal", 9, argv, scream, NULL);
if (status)
com_err(whoami, status, " setting host state again");
/* free(argv[2]);