osaf/services/saf/logsv/lgs/lgs_amf.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Server running on standby shall create the runtime object for showing
log service configuration if not exist
diff --git a/osaf/services/saf/logsv/lgs/lgs_amf.c
b/osaf/services/saf/logsv/lgs/lgs_amf.c
--- a/osaf/services/saf/logsv/lgs/lgs_amf.c
+++ b/osaf/services/saf/logsv/lgs/lgs_amf.c
@@ -78,13 +78,18 @@ static SaAisErrorT amf_active_state_hand
LOG_ER("saImmOiClassImplementerSet (SaLogStreamConfig) failed:
%d", error);
goto done;
}
- /* Do this only if the class exists */
+ /* Do this only if the log service configuration class exists */
if (*(bool*) lgs_cfg_get(LGS_IMM_LOG_OPENSAFLOGCONFIG_CLASS_EXIST)) {
if ((error =
immutil_saImmOiClassImplementerSet(cb->immOiHandle, "OpenSafLogConfig"))
!= SA_AIS_OK) {
LOG_ER("saImmOiClassImplementerSet (OpenSafLogConfig)
failed: %d", error);
goto done;
}
+
+ /* Create a log service configuration runtime object if the
+ * configuration runtime class exist and no object exist
+ */
+ conf_runtime_obj_create(cb->immOiHandle);
}
/* check existing streams */
------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel