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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
65629eb2
Commit
65629eb2
authored
Sep 25, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb-merge
parents
309416de
c03e24a6
Changes
1
Hide 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 @
65629eb2
...
@@ -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
;
...
...
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