@@ -329,7 +329,9 @@ static inline int process_out_of_order_msg ( orte_qos_ack_channel_t *ack_chan,
329
329
rc = ORTE_ERR_DUPLICATE_MSG ;
330
330
}
331
331
else {
332
- opal_hotel_checkin (& ack_chan -> outstanding_msgs , (void * )msg , & room_num );
332
+ if (OPAL_SUCCESS != (rc = opal_hotel_checkin (& ack_chan -> outstanding_msgs , (void * )msg , & room_num ))) {
333
+ return rc ;
334
+ }
333
335
OPAL_OUTPUT_VERBOSE ((1 , orte_qos_base_framework .framework_output ,
334
336
"process_out_of_order_msg checked in msg %d in room %d\n" ,
335
337
msg -> seq_num , room_num ));
@@ -484,17 +486,19 @@ static int ack_cmp (void *channel, opal_list_t *attributes) {
484
486
485
487
static void ack_send_callback (orte_rml_send_t * msg )
486
488
{
487
- orte_qos_ack_channel_t * ack_chan ;
488
489
/* complete the request back to the user only upon receiving the ack
489
490
nothing to do here, just make sure that the request is in the hotel */
490
491
OPAL_OUTPUT_VERBOSE ((1 , orte_qos_base_framework .framework_output ,
491
492
"%s ack_send_callback for msg = %p seq num =%d\n" ,
492
493
ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ),
493
494
(void * )msg , msg -> seq_num ));
494
- ack_chan = (orte_qos_ack_channel_t * ) msg -> channel -> qos_channel_ptr ;
495
495
/* if msg->status != SUCCESS - then evict all messages in the window and
496
496
complete them?? */
497
497
if (ORTE_SUCCESS == msg -> status ) {
498
+ #if OPAL_ENABLE_DEBUG
499
+ orte_qos_ack_channel_t * ack_chan ;
500
+ ack_chan = (orte_qos_ack_channel_t * ) msg -> channel -> qos_channel_ptr ;
501
+ #endif
498
502
// nothing to do
499
503
assert ((orte_qos_ack_channel_get_msg_room (ack_chan , msg -> seq_num )) != -1 );
500
504
} else {
@@ -531,7 +535,9 @@ void orte_qos_ack_msg_ack_timeout_callback (struct opal_hotel_t *hotel,
531
535
void orte_qos_ack_recv_msg_timeout_callback (struct opal_hotel_t * hotel ,
532
536
int room_num , void * occupant )
533
537
{
538
+ #if OPAL_ENABLE_DEBUG
534
539
orte_rml_recv_t * msg = (orte_rml_recv_t * ) occupant ;
540
+ #endif
535
541
#if 0
536
542
orte_qos_ack_channel_t * ack_chan ;
537
543
orte_rml_channel_t * channel ;
@@ -664,7 +670,9 @@ void orte_qos_ack_msg_send_callback ( int status,
664
670
orte_rml_tag_t tag ,
665
671
void * cbdata )
666
672
{
673
+ #if OPAL_ENABLE_DEBUG
667
674
orte_rml_channel_t * channel = (orte_rml_channel_t * ) cbdata ;
675
+ #endif
668
676
OPAL_OUTPUT_VERBOSE ((0 , orte_qos_base_framework .framework_output ,
669
677
" orte_qos_ack_msg_send_callback channel num =%d status =%d" ,
670
678
channel -> channel_num , status ));
0 commit comments