summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/SessionI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/SessionI.cpp')
-rw-r--r--cpp/src/IceGrid/SessionI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/SessionI.cpp b/cpp/src/IceGrid/SessionI.cpp
index 65ae312a1de..9f099595fa4 100644
--- a/cpp/src/IceGrid/SessionI.cpp
+++ b/cpp/src/IceGrid/SessionI.cpp
@@ -226,7 +226,7 @@ SessionI::allocateObjectById_async(const AMD_Session_allocateObjectByIdPtr& cb,
const Ice::Identity& id,
const Ice::Current&)
{
- _database->allocateObject(id, newAllocateObject(this, cb));
+ _database->getAllocatableObject(id)->allocate(newAllocateObject(this, cb));
}
void
@@ -234,13 +234,13 @@ SessionI::allocateObjectByType_async(const AMD_Session_allocateObjectByTypePtr&
const string& type,
const Ice::Current&)
{
- _database->allocateObjectByType(type, newAllocateObject(this, cb));
+ _database->getAllocatableObjectCache().allocateByType(type, newAllocateObject(this, cb));
}
void
SessionI::releaseObject(const Ice::Identity& id, const Ice::Current&)
{
- _database->releaseObject(id, this);
+ _database->getAllocatableObject(id)->release(this);
}
void