Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c03e24a6
Commit
c03e24a6
authored
Sep 25, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added debug printouts
parent
71d5ea8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ndb/src/ndbapi/Ndbinit.cpp
ndb/src/ndbapi/Ndbinit.cpp
+7
-0
No files found.
ndb/src/ndbapi/Ndbinit.cpp
View file @
c03e24a6
...
...
@@ -56,6 +56,8 @@ Parameters: aDataBase : Name of the database.
Remark: Connect to the database.
***************************************************************************/
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
);
if
(
theNoOfNdbObjects
<
0
)
abort
();
// old and new Ndb constructor used mixed
...
...
@@ -66,16 +68,20 @@ Ndb::Ndb( const char* aDataBase , const char* aSchema) {
}
NdbMutex_Unlock
(
&
createNdbMutex
);
setup
(
global_ndb_cluster_connection
,
aDataBase
,
aSchema
);
DBUG_VOID_RETURN
;
}
Ndb
::
Ndb
(
Ndb_cluster_connection
*
ndb_cluster_connection
,
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
&&
global_ndb_cluster_connection
!=
ndb_cluster_connection
)
abort
();
// old and new Ndb constructor used mixed
theNoOfNdbObjects
=
-
1
;
setup
(
ndb_cluster_connection
,
aDataBase
,
aSchema
);
DBUG_VOID_RETURN
;
}
void
Ndb
::
setup
(
Ndb_cluster_connection
*
ndb_cluster_connection
,
...
...
@@ -213,6 +219,7 @@ void Ndb::setConnectString(const char * connectString)
Ndb
::~
Ndb
()
{
DBUG_ENTER
(
"Ndb::~Ndb()"
);
DBUG_PRINT
(
"enter"
,(
"Ndb::~Ndb this=0x%x"
,
this
));
doDisconnect
();
delete
theDictionary
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment