Lines Matching refs:gres
244 static struct hast_resource *gres;
316 cleanup(gres);
328 cleanup(gres);
1017 gres = res;
2222 PJDLOG_ASSERT(gres == res);
2245 if (strcmp(gres->hr_remoteaddr, vstr) != 0) {
2247 * Don't copy res->hr_remoteaddr to gres just yet.
2254 if (strcmp(gres->hr_sourceaddr, vstr) != 0) {
2255 strlcpy(gres->hr_sourceaddr, vstr, sizeof(gres->hr_sourceaddr));
2259 if (gres->hr_replication != vint) {
2260 gres->hr_replication = vint;
2264 if (gres->hr_checksum != vint) {
2265 gres->hr_checksum = vint;
2269 if (gres->hr_compression != vint) {
2270 gres->hr_compression = vint;
2274 if (gres->hr_timeout != vint) {
2275 gres->hr_timeout = vint;
2279 if (strcmp(gres->hr_exec, vstr) != 0) {
2280 strlcpy(gres->hr_exec, vstr, sizeof(gres->hr_exec));
2284 if (gres->hr_metaflush != vint) {
2285 gres->hr_metaflush = vint;
2299 if (!ISCONNECTED(gres, ii)) {
2304 if (proto_timeout(gres->hr_remotein,
2305 gres->hr_timeout) == -1) {
2309 if (proto_timeout(gres->hr_remoteout,
2310 gres->hr_timeout) == -1) {
2320 remote_close(gres, ii);
2324 strlcpy(gres->hr_remoteaddr, vstr,
2325 sizeof(gres->hr_remoteaddr));