Bug#24361 valgrind error when shutting down mysqld connected to cluster

  - Disconnect from transporter before starting to delete objects
parent 540eb5ac
...@@ -146,12 +146,13 @@ Ndb::~Ndb() ...@@ -146,12 +146,13 @@ Ndb::~Ndb()
} }
doDisconnect(); doDisconnect();
delete theEventBuffer; /* Disconnect from transporter to stop signals from coming in */
if (theImpl->m_transporter_facade != NULL && theNdbBlockNumber > 0){ if (theImpl->m_transporter_facade != NULL && theNdbBlockNumber > 0){
theImpl->m_transporter_facade->close(theNdbBlockNumber, theFirstTransId); theImpl->m_transporter_facade->close(theNdbBlockNumber, theFirstTransId);
} }
delete theEventBuffer;
releaseTransactionArrays(); releaseTransactionArrays();
delete []theConnectionArray; delete []theConnectionArray;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment