Skip to content
Snippets Groups Projects
Commit 4a92f6f5 authored by jette's avatar jette
Browse files

Accept max_rpc_count parameter

SchedulerParameters now accepts keyword of "max_rpc_count" in
  addition to the documented "max_rpc_cnt"
parent a08a219e
No related branches found
No related tags found
No related merge requests found
......@@ -639,6 +639,9 @@ static void _load_config(void)
if (sched_params && (tmp_ptr=strstr(sched_params, "max_rpc_cnt=")))
defer_rpc_cnt = atoi(tmp_ptr + 12);
else if (sched_params &&
(tmp_ptr=strstr(sched_params, "max_rpc_count=")))
defer_rpc_cnt = atoi(tmp_ptr + 14);
if (defer_rpc_cnt < 0) {
error("Invalid SchedulerParameters max_rpc_cnt: %d",
defer_rpc_cnt);
......
......@@ -1109,6 +1109,9 @@ static int _schedule(uint32_t job_limit)
if (sched_params &&
(tmp_ptr=strstr(sched_params, "max_rpc_cnt=")))
defer_rpc_cnt = atoi(tmp_ptr + 12);
else if (sched_params &&
(tmp_ptr=strstr(sched_params, "max_rpc_count=")))
defer_rpc_cnt = atoi(tmp_ptr + 14);
if (defer_rpc_cnt < 0) {
error("Invalid max_rpc_cnt: %d", defer_rpc_cnt);
defer_rpc_cnt = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment