diff options
author | unknown <serg@sergbook.mysql.com> | 2004-12-31 18:01:00 +0100 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2004-12-31 18:01:00 +0100 |
commit | 9c92a25524183a88c46474bab10313eb8b9edbab (patch) | |
tree | 73d60625dbb0c5e0d654eb089086cb4785040288 /ndb/src/ndbapi/Ndbinit.cpp | |
parent | 6b393398744ec96a8f912b88d3a880114038aa12 (diff) | |
parent | 31c4511d1794079f3951d741901cbd4440da4e5c (diff) | |
download | mariadb-git-9c92a25524183a88c46474bab10313eb8b9edbab.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-5.0
mysql-test/r/user_limits.result:
Auto merged
mysql-test/t/user_limits.test:
Auto merged
Diffstat (limited to 'ndb/src/ndbapi/Ndbinit.cpp')
-rw-r--r-- | ndb/src/ndbapi/Ndbinit.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/ndb/src/ndbapi/Ndbinit.cpp b/ndb/src/ndbapi/Ndbinit.cpp index e1af7bd4cc5..a11dd842495 100644 --- a/ndb/src/ndbapi/Ndbinit.cpp +++ b/ndb/src/ndbapi/Ndbinit.cpp @@ -204,14 +204,6 @@ Ndb::~Ndb() TransporterFacade::instance()->close(theNdbBlockNumber, theFirstTransId); } - if (global_ndb_cluster_connection != 0) { - theNoOfNdbObjects--; - if(theNoOfNdbObjects == 0){ - delete global_ndb_cluster_connection; - global_ndb_cluster_connection= 0; - } - }//if - // if (theSchemaConToNdbList != NULL) // closeSchemaTransaction(theSchemaConToNdbList); while ( theConIdleList != NULL ) @@ -249,6 +241,19 @@ Ndb::~Ndb() delete theImpl; + /** + * This needs to be put after delete theImpl + * as TransporterFacade::instance is delete by global_ndb_cluster_connection + * and used by theImpl + */ + if (global_ndb_cluster_connection != 0) { + theNoOfNdbObjects--; + if(theNoOfNdbObjects == 0){ + delete global_ndb_cluster_connection; + global_ndb_cluster_connection= 0; + } + }//if + /** * This sleep is to make sure that the transporter * send thread will come in and send any |