transitioner: fix bugs when size matching is used.

This commit is contained in:
David Anderson 2013-05-20 10:25:58 -07:00
parent dea8b94f5d
commit 5827ff2a68
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,7 @@ int handle_wu(
// and check for timed-out results // and check for timed-out results
// //
ntotal = 0; ntotal = 0;
nunsent = 0; nunsent = 0; // including INACTIVE
ninprogress = 0; ninprogress = 0;
nover = 0; nover = 0;
nerrors = 0; nerrors = 0;
@ -221,6 +221,7 @@ int handle_wu(
if (rs > max_result_suffix) max_result_suffix = rs; if (rs > max_result_suffix) max_result_suffix = rs;
switch (res_item.res_server_state) { switch (res_item.res_server_state) {
case RESULT_SERVER_STATE_INACTIVE:
case RESULT_SERVER_STATE_UNSENT: case RESULT_SERVER_STATE_UNSENT:
nunsent++; nunsent++;
break; break;
@ -388,6 +389,7 @@ int handle_wu(
if (!res_item.res_id) continue; if (!res_item.res_id) continue;
bool update_result = false; bool update_result = false;
switch(res_item.res_server_state) { switch(res_item.res_server_state) {
case RESULT_SERVER_STATE_INACTIVE:
case RESULT_SERVER_STATE_UNSENT: case RESULT_SERVER_STATE_UNSENT:
log_messages.printf(MSG_NORMAL, log_messages.printf(MSG_NORMAL,
"[WU#%d %s] [RESULT#%d %s] server_state:UNSENT=>OVER; outcome:=>DIDNT_NEED\n", "[WU#%d %s] [RESULT#%d %s] server_state:UNSENT=>OVER; outcome:=>DIDNT_NEED\n",