From 5827ff2a68c7bf8cc3d0a7bbba39ede85b2ce69b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 20 May 2013 10:25:58 -0700 Subject: [PATCH] transitioner: fix bugs when size matching is used. --- sched/transitioner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sched/transitioner.cpp b/sched/transitioner.cpp index 0e55cee168..599cae262f 100644 --- a/sched/transitioner.cpp +++ b/sched/transitioner.cpp @@ -162,7 +162,7 @@ int handle_wu( // and check for timed-out results // ntotal = 0; - nunsent = 0; + nunsent = 0; // including INACTIVE ninprogress = 0; nover = 0; nerrors = 0; @@ -221,6 +221,7 @@ int handle_wu( if (rs > max_result_suffix) max_result_suffix = rs; switch (res_item.res_server_state) { + case RESULT_SERVER_STATE_INACTIVE: case RESULT_SERVER_STATE_UNSENT: nunsent++; break; @@ -388,6 +389,7 @@ int handle_wu( if (!res_item.res_id) continue; bool update_result = false; switch(res_item.res_server_state) { + case RESULT_SERVER_STATE_INACTIVE: case RESULT_SERVER_STATE_UNSENT: log_messages.printf(MSG_NORMAL, "[WU#%d %s] [RESULT#%d %s] server_state:UNSENT=>OVER; outcome:=>DIDNT_NEED\n",