summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Corsaro <angelo@icorsaro.net>2001-03-21 00:56:37 +0000
committerAngelo Corsaro <angelo@icorsaro.net>2001-03-21 00:56:37 +0000
commitf6c4ec465dcf1cab642bc737c4354a93c6ab3f93 (patch)
tree37d62ace989cbea2bcbce288aa5f333ceefea48c
parent0827e0676560cfaaa99e88e0717b0a476712f037 (diff)
downloadATCD-f6c4ec465dcf1cab642bc737c4354a93c6ab3f93.tar.gz
ChangeLogTAg: Tue Mar 20 18.54:01 Angelo Corsaro <corsaro@cs.wustl.edu>
-rw-r--r--TAO/tao/RT_Invocation_Endpoint_Selectors.cpp9
1 files 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)