From f6c4ec465dcf1cab642bc737c4354a93c6ab3f93 Mon Sep 17 00:00:00 2001 From: Angelo Corsaro Date: Wed, 21 Mar 2001 00:56:37 +0000 Subject: ChangeLogTAg: Tue Mar 20 18.54:01 Angelo Corsaro --- TAO/tao/RT_Invocation_Endpoint_Selectors.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/TAO/tao/RT_Invocation_Endpoint_Selectors.cpp b/TAO/tao/RT_Invocation_Endpoint_Selectors.cpp index 991cf9ff4ac..30a7ce95dc0 100644 --- a/TAO/tao/RT_Invocation_Endpoint_Selectors.cpp +++ b/TAO/tao/RT_Invocation_Endpoint_Selectors.cpp @@ -58,21 +58,16 @@ TAO_Priority_Endpoint_Selector::select_endpoint (TAO_GIOP_Invocation // Profiles contains more than one endpoint. Find one with the // right priority. - // Right now it is assumed that the priority bands are adjacent, and - // that for each priority band the ORB has an endpoint at a priority - // that is set to the maximum of the associated band. TAO_Endpoint *endpoint = 0; - TAO_Endpoint *prev_endpoint = invocation->profile_->endpoint (); for (TAO_Endpoint *endp = invocation->profile_->endpoint (); endp != 0; endp = endp->next ()) { - if (endp->priority () > invocation->endpoint_selection_state_.client_priority_) + if (endp->priority () == invocation->endpoint_selection_state_.client_priority_) { - endpoint = prev_endpoint; + endpoint = endp; break; } - prev_endpoint = endp; } if (endpoint != 0) -- cgit v1.2.1