commit aec1464068db214e50dee7d66b3511c7816dc79f (HEAD -> develop,
origin/develop, ticket-3301)
Author: hieu.h.hoang <[email protected]>
Date: Fri Dec 10 07:41:08 2021 +0700
log: Correct condition to shutdown the log agent [#3301]
The shutdown function was invoked every time invoking the finalize function.
Try to shutdown the log agent only if the log client was finalized
successfully.
---
** [tickets:#3301] log: Try to shutdown the log agent even if it already
shutdown**
**Status:** review
**Milestone:** 5.21.12
**Created:** Thu Dec 09, 2021 08:50 AM UTC by Hieu Hong Hoang
**Last Updated:** Mon Dec 13, 2021 08:03 AM UTC
**Owner:** Hieu Hong Hoang
In [ticket 3291](https://sourceforge.net/p/opensaf/tickets/3291/), the
following code was added:
~~~
done:
if (CountClient() == 0) {
// Stop recovery thread if it's running
stop_recovery2_thread();
// Shutdown the agent
rc = lga_shutdown();
if (rc != NCSCC_RC_SUCCESS) {
TRACE("lga_shutdown FAILED");
ais_rc = SA_AIS_ERR_LIBRARY;
}
m_NCS_SEL_OBJ_RMV_IND(&init_clm_status_sel_, true, false);
m_NCS_SEL_OBJ_RMV_IND(&log_server_up_sel_, true, false);
atomic_data_.waiting_log_server_up = true;
}
~~~
The shutdown function was invoked every time we call the finalize function. We
should shutdown the log agent only if we finalize a log client successfully.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets