X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fna.git/blobdiff_plain/dca84479f54261f731045ba43234fec5d12079cb..5f40b91996a8aa29ee1cf5e5e1d1a1a44890638d:/src_frescan/frescan_bwres_threads.c diff --git a/src_frescan/frescan_bwres_threads.c b/src_frescan/frescan_bwres_threads.c index 111985c..775d791 100644 --- a/src_frescan/frescan_bwres_threads.c +++ b/src_frescan/frescan_bwres_threads.c @@ -428,16 +428,23 @@ static void frescan_manager_rep_gn(frescan_bwres_request_data_t *req_data) assert(ret == 0); caller_req->return_value = req_data->return_value; - assert (req_data->ss_new->size == caller_req->contracts_to_neg->size); - caller_req->ss_new->size = req_data->ss_new->size; DEBUG(FRESCAN_BWRES_MANAGER_ENABLE_DEBUG, - "ret:%d ss_new->size:%u\n", - req_data->return_value, - caller_req->ss_new->size); + "ret:%d -> %s\n", req_data->return_value, + (req_data->return_value == + FRESCAN_BWRES_REQ_ACCEPTED) ? "OK" : "FAIL"); - for (i=0; iss_new->size; i++) { - caller_req->ss_new->ss[i] = req_data->ss_new->ss[i]; + if (req_data->return_value == FRESCAN_BWRES_REQ_ACCEPTED) { + assert (req_data->ss_new->size == + caller_req->contracts_to_neg->size); + caller_req->ss_new->size = req_data->ss_new->size; + + DEBUG(FRESCAN_BWRES_MANAGER_ENABLE_DEBUG, + "ss_new->size:%u\n", caller_req->ss_new->size); + + for (i=0; iss_new->size; i++) { + caller_req->ss_new->ss[i] = req_data->ss_new->ss[i]; + } } ret = frescan_bwres_robjs_signal(caller_req->robj);