MCPcopy Create free account
hub / github.com/antirez/ds4 / dist_parse_role

Function dist_parse_role

ds4_distributed.c:8004–8019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8002 close(fd);
8003 dist_sleep_reconnect();
8004 continue;
8005 }
8006
8007 int rc = getenv("DS4_DIST_DISABLE_WORKER_PREFETCH")
8008 ? dist_worker_read_loop(&state, fd)
8009 : dist_worker_read_loop_prefetch(&state, fd);
8010 close(fd);
8011 uint32_t dropped_sessions = dist_worker_clear_sessions(&state);
8012 if (dropped_sessions) {
8013 fprintf(stderr,
8014 "ds4: distributed worker: cleared %u sessions after coordinator disconnect\n",
8015 dropped_sessions);
8016 }
8017 fprintf(stderr, "ds4: distributed worker: coordinator disconnected%s; reconnecting\n",
8018 rc ? " after error" : "");
8019 dist_sleep_reconnect();
8020 }
8021}
8022

Callers 1

ds4_dist_parse_cli_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected