From 58178dd259bd8237b433c6934d1e452c042f3ab0 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Wed, 5 Jun 2013 09:07:46 -0700 Subject: [PATCH] Remove no longer needed change_poll function from jobacct_gather --- src/common/slurm_jobacct_gather.c | 33 ------------------- src/common/slurm_jobacct_gather.h | 1 - .../jobacct_gather/none/jobacct_gather_none.c | 5 --- 3 files changed, 39 deletions(-) diff --git a/src/common/slurm_jobacct_gather.c b/src/common/slurm_jobacct_gather.c index e568002c0db..66ef815dd47 100644 --- a/src/common/slurm_jobacct_gather.c +++ b/src/common/slurm_jobacct_gather.c @@ -347,39 +347,6 @@ extern int jobacct_gather_endpoll(void) return retval; } -extern void jobacct_gather_change_poll(uint16_t frequency) -{ - if (jobacct_gather_init() < 0) - return; - - if (plugin_polling && freq == 0 && frequency != 0) { - pthread_attr_t attr; - pthread_t _watch_tasks_thread_id; - /* create polling thread */ - slurm_attr_init(&attr); - if (pthread_attr_setdetachstate(&attr, - PTHREAD_CREATE_DETACHED)) - error("pthread_attr_setdetachstate error %m"); - - if (pthread_create(&_watch_tasks_thread_id, &attr, - &_watch_tasks, NULL)) { - debug("jobacct-gather failed to create _watch_tasks " - "thread: %m"); - frequency = 0; - } - else - debug3("jobacct-gather LINUX dynamic logging enabled"); - slurm_attr_destroy(&attr); - jobacct_shutdown = false; - } - - freq = frequency; - debug("jobacct-gather: frequency changed = %d", frequency); - if (freq == 0) - jobacct_shutdown = true; - return; -} - extern void jobacct_gather_suspend_poll(void) { jobacct_suspended = true; diff --git a/src/common/slurm_jobacct_gather.h b/src/common/slurm_jobacct_gather.h index acd6806f866..bf0f5c3fb40 100644 --- a/src/common/slurm_jobacct_gather.h +++ b/src/common/slurm_jobacct_gather.h @@ -141,7 +141,6 @@ extern int jobacct_gather_fini(void); /* unload the plugin */ extern int jobacct_gather_startpoll(uint16_t frequency); extern int jobacct_gather_endpoll(void); -extern void jobacct_gather_change_poll(uint16_t frequency); extern void jobacct_gather_suspend_poll(void); extern void jobacct_gather_resume_poll(void); diff --git a/src/plugins/jobacct_gather/none/jobacct_gather_none.c b/src/plugins/jobacct_gather/none/jobacct_gather_none.c index c7780c5aac0..354d7862cce 100644 --- a/src/plugins/jobacct_gather/none/jobacct_gather_none.c +++ b/src/plugins/jobacct_gather/none/jobacct_gather_none.c @@ -146,11 +146,6 @@ extern int jobacct_gather_p_endpoll(void) return SLURM_SUCCESS; } -extern void jobacct_gather_p_change_poll(uint16_t frequency) -{ - return; -} - extern void jobacct_gather_p_suspend_poll(void) { return; -- GitLab