summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-02-08 16:26:39 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-02-08 16:26:39 +0000
commitd0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a (patch)
tree8bbe532f3f9286486434f0fe43ade00d3e5410d3 /cpp/src/Ice/Reference.cpp
parentAdded alternate sequence mappings (diff)
downloadice-d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a.tar.bz2
ice-d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a.tar.xz
ice-d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a.zip
Minor fixes for locator cache timeout.
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 6937b67d27c..b0bcdb05d78 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -772,7 +772,8 @@ IceInternal::DirectReference::changeLocator(const LocatorPrx& newLocator) const
LocatorInfoPtr newLocatorInfo = getInstance()->locatorManager()->get(newLocator);
return getInstance()->referenceFactory()->create(getIdentity(), getContext(), getFacet(), getMode(),
getSecure(), "", 0, newLocatorInfo,
- getCollocationOptimization());
+ getCollocationOptimization(),
+ getLocatorCacheTimeout());
}
else
{
@@ -831,7 +832,8 @@ IceInternal::DirectReference::changeAdapterId(const string& newAdapterId) const
getInstance()->locatorManager()->get(getInstance()->referenceFactory()->getDefaultLocator());
return getInstance()->referenceFactory()->create(getIdentity(), getContext(), getFacet(), getMode(),
getSecure(), newAdapterId, getRouterInfo(), locatorInfo,
- getCollocationOptimization());
+ getCollocationOptimization(),
+ getLocatorCacheTimeout());
}
else
{
@@ -991,11 +993,12 @@ void IceInternal::decRef(IceInternal::IndirectReference* p) { p->__decRef(); }
IceInternal::IndirectReference::IndirectReference(const InstancePtr& inst, const CommunicatorPtr& com,
const Identity& ident, const Context& ctx, const string& fs, Mode md,
bool sec, const string& adptid, const RouterInfoPtr& rtrInfo,
- const LocatorInfoPtr& locInfo, bool collocationOpt)
+ const LocatorInfoPtr& locInfo, bool collocationOpt,
+ int locatorCacheTimeout)
: RoutableReference(inst, com, ident, ctx, fs, md, sec, rtrInfo, collocationOpt),
_adapterId(adptid),
_locatorInfo(locInfo),
- _locatorCacheTimeout(inst->defaultsAndOverrides()->defaultLocatorCacheTimeout)
+ _locatorCacheTimeout(locatorCacheTimeout)
{
}