Commit ae86dad2 authored by unknown's avatar unknown

added debug printouts

parent d6c1a39a
...@@ -56,6 +56,8 @@ Parameters: aDataBase : Name of the database. ...@@ -56,6 +56,8 @@ Parameters: aDataBase : Name of the database.
Remark: Connect to the database. Remark: Connect to the database.
***************************************************************************/ ***************************************************************************/
Ndb::Ndb( const char* aDataBase , const char* aSchema) { Ndb::Ndb( const char* aDataBase , const char* aSchema) {
DBUG_ENTER("Ndb::Ndb()");
DBUG_PRINT("enter",("(old)Ndb::Ndb this=0x%x", this));
NdbMutex_Lock(&createNdbMutex); NdbMutex_Lock(&createNdbMutex);
if (theNoOfNdbObjects < 0) if (theNoOfNdbObjects < 0)
abort(); // old and new Ndb constructor used mixed abort(); // old and new Ndb constructor used mixed
...@@ -66,16 +68,20 @@ Ndb::Ndb( const char* aDataBase , const char* aSchema) { ...@@ -66,16 +68,20 @@ Ndb::Ndb( const char* aDataBase , const char* aSchema) {
} }
NdbMutex_Unlock(&createNdbMutex); NdbMutex_Unlock(&createNdbMutex);
setup(global_ndb_cluster_connection, aDataBase, aSchema); setup(global_ndb_cluster_connection, aDataBase, aSchema);
DBUG_VOID_RETURN;
} }
Ndb::Ndb( Ndb_cluster_connection *ndb_cluster_connection, Ndb::Ndb( Ndb_cluster_connection *ndb_cluster_connection,
const char* aDataBase , const char* aSchema) const char* aDataBase , const char* aSchema)
{ {
DBUG_ENTER("Ndb::Ndb()");
DBUG_PRINT("enter",("Ndb::Ndb this=0x%x", this));
if (global_ndb_cluster_connection != 0 && if (global_ndb_cluster_connection != 0 &&
global_ndb_cluster_connection != ndb_cluster_connection) global_ndb_cluster_connection != ndb_cluster_connection)
abort(); // old and new Ndb constructor used mixed abort(); // old and new Ndb constructor used mixed
theNoOfNdbObjects= -1; theNoOfNdbObjects= -1;
setup(ndb_cluster_connection, aDataBase, aSchema); setup(ndb_cluster_connection, aDataBase, aSchema);
DBUG_VOID_RETURN;
} }
void Ndb::setup(Ndb_cluster_connection *ndb_cluster_connection, void Ndb::setup(Ndb_cluster_connection *ndb_cluster_connection,
...@@ -213,6 +219,7 @@ void Ndb::setConnectString(const char * connectString) ...@@ -213,6 +219,7 @@ void Ndb::setConnectString(const char * connectString)
Ndb::~Ndb() Ndb::~Ndb()
{ {
DBUG_ENTER("Ndb::~Ndb()"); DBUG_ENTER("Ndb::~Ndb()");
DBUG_PRINT("enter",("Ndb::~Ndb this=0x%x",this));
doDisconnect(); doDisconnect();
delete theDictionary; delete theDictionary;
......
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