diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -81,7 +81,6 @@ struct general_info /* ************General Functions************* */ int distrend_do(); -void frame_watchdog(struct distrenjob *distrenjob_head); int distrend_do_config(int argc, char *argv[], struct distrend_config **config); int distrend_config_free(struct distrend_config *config); @@ -160,7 +159,7 @@ int main(int argc, char *argv[]) distrend_accept(general_info.config, clients); /* Make the following code more event-driven */ - frame_watchdog(&general_info.head); + frame_watchdog(general_info.conn); struct frameset frame; struct distrenjob *job; @@ -211,21 +210,6 @@ int distrend_do() return 0; } - -/** Checks for dead, latent, or stale slaves */ -void frame_watchdog(struct distrenjob *distrenjob_head) -{ - // Replace with mysqlness, maybe - // iterate through jobs - // if the job has been started, checks by seeing if either to first or second frame has been started - // FRAMESETSTATUS_UNASSIGNED - // iterate through all frames for this job: - //watchdog_forgiveness = seconds of forgiveness before frame is re-assigned: - // If frame is not completed within the number of seconds specified by watchdog_forgiveness - // Then change the frame status to unassigned -} - - /* Grabs config info from confs */ int distrend_do_config(int argc, char *argv[], struct distrend_config **config) {