diff options
author | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-18 22:59:03 +0000 |
---|---|---|
committer | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-18 22:59:03 +0000 |
commit | 76debafe81ddd5a8e701d15986289bdd5fd5c935 (patch) | |
tree | fd034f75bed5ff34d2b6687f047c7d87651fb726 /TAO/orbsvcs/orbsvcs/Naming/FaultTolerant | |
parent | 46fa815edd399a93817b7bc620c1a120ca84d249 (diff) | |
download | ATCD-76debafe81ddd5a8e701d15986289bdd5fd5c935.tar.gz |
Added checks for file status in FT_Storable abstraction. Updated object group creation to prevent adding same object group multiple times.
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Naming/FaultTolerant')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp index 96eb494c816..c83526acd57 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp @@ -91,7 +91,15 @@ TAO_FT_Naming_Manager::create_object_group ( ::FT_Naming::LoadBalancingStrategyValue lb_strategy, const ::PortableGroup::Criteria & the_criteria) { - // The when creating the object group, it starts as a generic + // Make sure the object group does not already exist. + TAO::PG_Object_Group* group; + if (this->group_factory_.find_group_with_name (group_name, + group)) + { + throw PortableGroup::ObjectNotCreated (); + } + + // When creating the object group, it starts as a generic // CORBA Object. It will become the type of the first added // member. const char * type_id = "IDL:omg.org:CORBA/Object:1.0"; |