osaf/services/saf/immsv/immnd/ImmModel.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


The incorrect expression resulted in the omission of appending to the
ccb-create-oi-callback, the default values for persistent runtime attributes
that (a) where not explicitly assigned in the ccb-object create request;
and (b) did have a default value defined. Yes it is alowed to set the value
for PRTAs in a config object, but only when the config object is created.
Check the SAF spec.

The default was assigned in the imm-ram-db, but did not reach the OI
or appliers, including the PBE-OI and the special appliers (imcn).

The PBE (persistence) was actually no problem since a restart from the
PBE would again not assign these values resulting in the defaults being
set again in imm-ram.

If this bug caused any problem it could have been the omission to include
the attribute-value(default) for PRTAs in a ccb-create-callback to
special applier/imcn.

diff --git a/osaf/services/saf/immsv/immnd/ImmModel.cc 
b/osaf/services/saf/immsv/immnd/ImmModel.cc
--- a/osaf/services/saf/immsv/immnd/ImmModel.cc
+++ b/osaf/services/saf/immsv/immnd/ImmModel.cc
@@ -7151,8 +7151,8 @@ SaAisErrorT ImmModel::ccbObjectCreate(Im
                     TRACE("Attribute %s was missing from create input list", 
attrName.c_str());
 
                     if((attr->mFlags & SA_IMM_ATTR_RUNTIME) && 
-                      ~(attr->mFlags & SA_IMM_ATTR_PERSISTENT) &&
-                      ~(attr->mFlags & SA_IMM_ATTR_NOTIFY)) {
+                      !(attr->mFlags & SA_IMM_ATTR_PERSISTENT) &&
+                      !(attr->mFlags & SA_IMM_ATTR_NOTIFY)) {
                         /* Persistent runtime attributes appended for PBE will 
be
                            trimmed away if not needed by special applier. 
                            Notify marked attributes (must be cached) are 
appeded for

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to