- **status**: review --> fixed
---
** [tickets:#3301] log: Try to shutdown the log agent even if it already
shutdown**
**Status:** fixed
**Milestone:** 5.21.12
**Created:** Thu Dec 09, 2021 08:50 AM UTC by Hieu Hong Hoang
**Last Updated:** Wed Dec 15, 2021 10:45 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