From 75f05573d0cd57491f3e1c7739a76a8ce4c9688b Mon Sep 17 00:00:00 2001 From: dengg Date: Sun, 10 Apr 2005 05:37:42 +0000 Subject: Sat Apr 09 23:59:40 2005 Gan Deng --- TAO/CIAO/ChangeLog | 10 ++++++++++ .../DomainApplicationManager/Deployment_Configuration.cpp | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/TAO/CIAO/ChangeLog b/TAO/CIAO/ChangeLog index 12e79aa17b4..12558511735 100644 --- a/TAO/CIAO/ChangeLog +++ b/TAO/CIAO/ChangeLog @@ -1,3 +1,13 @@ +Sat Apr 09 23:59:40 2005 Gan Deng + + * DAnCE/DomainApplicationManager/Deployment_Configuration.cpp + + Fixed a bug where duplicated CORBALOC specified in the + NodeManagerMap could cause undetected exception. This fix + will allow such duplication IOR error to be detected explicitly + and error message will be printed out. Thanks Steve Baker + for report this bug. + Fri Apr 8 14:30:52 CDT 2005 Will Otte * DAnCE/Config_Handlers/cdp.cpp diff --git a/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp b/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp index 35d0d551668..a745b0cef60 100644 --- a/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp +++ b/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp @@ -34,10 +34,23 @@ CIAO::Deployment_Configuration::init (const char *filename) char destination[NAME_BUFSIZE], ior[NAME_BUFSIZE]; + ACE_Hash_Map_Manager_Ex, + ACE_Equal_To, + ACE_Null_Mutex> check_ior_duplication; + int first = 1; while (fscanf (inf, "%s %s", destination, ior ) != EOF) { + if (check_ior_duplication.bind (ior, 0) == 1) // duplication found + { + ACE_DEBUG ((LM_ERROR, "(%P|%t) IOR of NodeManagers should be unique, " + "check your node manager map file.\n")); + return -1; // indicate "init" failed. + } + this->deployment_info_.bind (destination, ior); if (first) -- cgit v1.2.1