Преглед на файлове

tm: Set tcx.branch_index to picked branch before running failure route.

This makes the picked branch index available in $T_branch_idx for failure_route.
Alex Hermann преди 13 години
родител
ревизия
e604493579
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      modules/tm/t_reply.c

+ 1 - 0
modules/tm/t_reply.c

@@ -1352,6 +1352,7 @@ static enum rps t_should_relay_response( struct cell *Trans , int new_code,
 
 		drop_replies = failure_reply_mode;
 		replies_dropped = 0;
+		tm_ctx_set_branch_index(picked_branch);
 		/* run ON_FAILURE handlers ( route and callbacks) */
 		if (unlikely(has_tran_tmcbs( Trans, TMCB_ON_FAILURE_RO|TMCB_ON_FAILURE)
 						|| Trans->uac[picked_branch].on_failure )) {