summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/WellKnownObjectsManager.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-09-20 11:54:20 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-09-20 11:54:20 +0000
commit1ea8dd904580a2fba9d9cfbd03aa8ed062ae53b4 (patch)
treefa27771d0c6695f1cab4f6945ba036917bf9018c /cpp/src/IceGrid/WellKnownObjectsManager.cpp
parentNew Ice::initialize() overload for StringSeq. (diff)
downloadice-1ea8dd904580a2fba9d9cfbd03aa8ed062ae53b4.tar.bz2
ice-1ea8dd904580a2fba9d9cfbd03aa8ed062ae53b4.tar.xz
ice-1ea8dd904580a2fba9d9cfbd03aa8ed062ae53b4.zip
Removed null permission verifier well-known objects Various fixes for
replcia session establishment.
Diffstat (limited to 'cpp/src/IceGrid/WellKnownObjectsManager.cpp')
-rw-r--r--cpp/src/IceGrid/WellKnownObjectsManager.cpp28
1 files changed, 3 insertions, 25 deletions
diff --git a/cpp/src/IceGrid/WellKnownObjectsManager.cpp b/cpp/src/IceGrid/WellKnownObjectsManager.cpp
index 25e0c9e52f6..fde27fc5bdb 100644
--- a/cpp/src/IceGrid/WellKnownObjectsManager.cpp
+++ b/cpp/src/IceGrid/WellKnownObjectsManager.cpp
@@ -72,19 +72,7 @@ WellKnownObjectsManager::registerAll()
// If initialized, the endpoints and well known objects are immutable.
//
updateReplicatedWellKnownObjects();
- registerWellKnownObjects(_wellKnownObjects);
-}
-
-void
-WellKnownObjectsManager::registerWellKnownObjects(const ObjectInfoSeq& objects)
-{
- _database->addOrUpdateObjectsInDatabase(objects);
-}
-
-void
-WellKnownObjectsManager::unregisterWellKnownObjects(const ObjectInfoSeq& objects)
-{
- _database->removeObjectsInDatabase(objects);
+ _database->addOrUpdateObjectsInDatabase(_wellKnownObjects);
}
void
@@ -103,6 +91,8 @@ WellKnownObjectsManager::updateReplicatedWellKnownObjects()
ObjectInfo info;
ObjectInfoSeq objects;
+ Lock sync(*this);
+
Ice::ObjectPrx replicatedClientProxy = _database->getReplicatedEndpoints("Client", _endpoints["Client"]);
id.name = "Query";
@@ -115,18 +105,6 @@ WellKnownObjectsManager::updateReplicatedWellKnownObjects()
info.proxy = replicatedClientProxy->ice_identity(id);
objects.push_back(info);
- Ice::ObjectPrx replicatedInternalProxy = _database->getReplicatedEndpoints("Internal", _endpoints["Internal"]);
-
- id.name = "NullPermissionsVerifier";
- info.type = Glacier2::PermissionsVerifier::ice_staticId();
- info.proxy = replicatedInternalProxy->ice_identity(id);
- objects.push_back(info);
-
- id.name = "NullSSLPermissionsVerifier";
- info.type = Glacier2::SSLPermissionsVerifier::ice_staticId();
- info.proxy = replicatedInternalProxy->ice_identity(id);
- objects.push_back(info);
-
_database->addOrUpdateObjectsInDatabase(objects);
}