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
795dfa59
Commit
795dfa59
authored
Jun 22, 2004
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1-ndb
parents
46455f57
da8ab00d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+21
-0
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+1
-0
No files found.
sql/ha_ndbcluster.cc
View file @
795dfa59
...
@@ -63,6 +63,9 @@ typedef NdbDictionary::Dictionary NDBDICT;
...
@@ -63,6 +63,9 @@ typedef NdbDictionary::Dictionary NDBDICT;
bool
ndbcluster_inited
=
false
;
bool
ndbcluster_inited
=
false
;
TABLE
*
g_tab_dummy
;
static
ha_ndbcluster
*
g_ha_error
=
NULL
;
static
Ndb
*
g_ndb
=
NULL
;
static
Ndb
*
g_ndb
=
NULL
;
// Handler synchronization
// Handler synchronization
...
@@ -2689,6 +2692,15 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked)
...
@@ -2689,6 +2692,15 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked)
DBUG_PRINT
(
"enter"
,
(
"name: %s mode: %d test_if_locked: %d"
,
DBUG_PRINT
(
"enter"
,
(
"name: %s mode: %d test_if_locked: %d"
,
name
,
mode
,
test_if_locked
));
name
,
mode
,
test_if_locked
));
// Create error handler needed for error msg handling in static
// handler functions (ha_commit_trans and ha_rollback_trans)
if
(
!
g_ha_error
)
{
g_tab_dummy
=
new
TABLE
();
g_tab_dummy
->
table_name
=
NULL
;
g_ha_error
=
new
ha_ndbcluster
(
g_tab_dummy
);
}
// Setup ref_length to make room for the whole
// Setup ref_length to make room for the whole
// primary key to be written in the ref variable
// primary key to be written in the ref variable
...
@@ -2928,6 +2940,11 @@ bool ndbcluster_init()
...
@@ -2928,6 +2940,11 @@ bool ndbcluster_init()
bool
ndbcluster_end
()
bool
ndbcluster_end
()
{
{
DBUG_ENTER
(
"ndbcluster_end"
);
DBUG_ENTER
(
"ndbcluster_end"
);
if
(
g_ha_error
)
{
delete
g_tab_dummy
;
delete
g_ha_error
;
}
delete
g_ndb
;
delete
g_ndb
;
g_ndb
=
NULL
;
g_ndb
=
NULL
;
if
(
!
ndbcluster_inited
)
if
(
!
ndbcluster_inited
)
...
@@ -2941,6 +2958,10 @@ bool ndbcluster_end()
...
@@ -2941,6 +2958,10 @@ bool ndbcluster_end()
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
void
ndbcluster_print_error
(
int
error
)
{
g_ha_error
->
print_error
(
error
,
MYF
(
0
));
}
/*
/*
Set m_tabname from full pathname to table file
Set m_tabname from full pathname to table file
...
...
sql/ha_ndbcluster.h
View file @
795dfa59
...
@@ -229,6 +229,7 @@ int ndbcluster_discover(const char* dbname, const char* name,
...
@@ -229,6 +229,7 @@ int ndbcluster_discover(const char* dbname, const char* name,
const
void
**
frmblob
,
uint
*
frmlen
);
const
void
**
frmblob
,
uint
*
frmlen
);
int
ndbcluster_drop_database
(
const
char
*
path
);
int
ndbcluster_drop_database
(
const
char
*
path
);
void
ndbcluster_print_error
(
int
error
);
...
...
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