diff options
Diffstat (limited to 'cpp/src/IceGrid/DescriptorHelper.cpp')
-rw-r--r-- | cpp/src/IceGrid/DescriptorHelper.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/DescriptorHelper.cpp b/cpp/src/IceGrid/DescriptorHelper.cpp index 3fd0113641c..e3607718d26 100644 --- a/cpp/src/IceGrid/DescriptorHelper.cpp +++ b/cpp/src/IceGrid/DescriptorHelper.cpp @@ -1191,8 +1191,14 @@ ServiceInstanceHelper::instantiate(const Resolver& resolve) const ServiceInstanceDescriptor desc; desc.descriptor = def.instantiate(svcResolve); - desc._cpp_template = _template; - desc.parameterValues = _parameters; + // + // NOTE: We can't keep the following attributes in the service + // instance otherwise the instance comparison would be based on + // the template + parameters which would be wrong (if the template + // changed the instance also changed.) + // + //desc._cpp_template = _template; + //desc.parameterValues = _parameters; return desc; } @@ -2555,7 +2561,6 @@ IceGrid::descriptorEqual(const ServerDescriptorPtr& lhs, const ServerDescriptorP { return false; } - IceBoxDescriptorPtr lhsIceBox = IceBoxDescriptorPtr::dynamicCast(lhs); if(lhsIceBox) { |