Commit 2531b1ac authored by unknown's avatar unknown

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

 - Disconnect from transporter before starting to delete objects


storage/ndb/src/ndbapi/Ndbinit.cpp:
  Make sure to diconnect from transporter to stop signals from coming in before
  starting to delete the objects that would recieve the signals
parent 77fc294a
...@@ -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