Lines Matching refs:gres

244 static struct hast_resource *gres;  variable
316 cleanup(gres); in primary_exit()
328 cleanup(gres); in primary_exitx()
1017 gres = res; in hastd_primary()
2222 PJDLOG_ASSERT(gres == res); in primary_config_reload()
2245 if (strcmp(gres->hr_remoteaddr, vstr) != 0) { in primary_config_reload()
2254 if (strcmp(gres->hr_sourceaddr, vstr) != 0) { in primary_config_reload()
2255 strlcpy(gres->hr_sourceaddr, vstr, sizeof(gres->hr_sourceaddr)); in primary_config_reload()
2259 if (gres->hr_replication != vint) { in primary_config_reload()
2260 gres->hr_replication = vint; in primary_config_reload()
2264 if (gres->hr_checksum != vint) { in primary_config_reload()
2265 gres->hr_checksum = vint; in primary_config_reload()
2269 if (gres->hr_compression != vint) { in primary_config_reload()
2270 gres->hr_compression = vint; in primary_config_reload()
2274 if (gres->hr_timeout != vint) { in primary_config_reload()
2275 gres->hr_timeout = vint; in primary_config_reload()
2279 if (strcmp(gres->hr_exec, vstr) != 0) { in primary_config_reload()
2280 strlcpy(gres->hr_exec, vstr, sizeof(gres->hr_exec)); in primary_config_reload()
2284 if (gres->hr_metaflush != vint) { in primary_config_reload()
2285 gres->hr_metaflush = vint; in primary_config_reload()
2299 if (!ISCONNECTED(gres, ii)) { in primary_config_reload()
2304 if (proto_timeout(gres->hr_remotein, in primary_config_reload()
2305 gres->hr_timeout) == -1) { in primary_config_reload()
2309 if (proto_timeout(gres->hr_remoteout, in primary_config_reload()
2310 gres->hr_timeout) == -1) { in primary_config_reload()
2320 remote_close(gres, ii); in primary_config_reload()
2324 strlcpy(gres->hr_remoteaddr, vstr, in primary_config_reload()
2325 sizeof(gres->hr_remoteaddr)); in primary_config_reload()