Log agent get BAD_HANDLE in some API from log server. The client has already gone away in log server, but it still in the list in agent (lib). it need to be deallocated and removed from list in agent.
The patch updates to remove in log API finalize --- src/log/agent/lga_agent.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/log/agent/lga_agent.cc b/src/log/agent/lga_agent.cc index 2bbc28abd..284876360 100644 --- a/src/log/agent/lga_agent.cc +++ b/src/log/agent/lga_agent.cc @@ -567,6 +567,9 @@ SaAisErrorT LogAgent::SendFinalizeMsg(uint32_t client_id) { ais_rc = SA_AIS_ERR_NO_RESOURCES; } + // Log client already gone away in log server. + if (ais_rc == SA_AIS_ERR_BAD_HANDLE) ais_rc = SA_AIS_OK; + return ais_rc; } -- 2.15.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel