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
9db8459b
Commit
9db8459b
authored
May 14, 2007
by
mikael@dator3.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into dator3.(none):/home/mikael/mysql_clones/rt-5.0
parents
f70b24c7
7a02c71f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+18
-9
No files found.
sql/ha_ndbcluster.cc
View file @
9db8459b
...
...
@@ -5011,27 +5011,36 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked)
set_dbname
(
name
);
set_tabname
(
name
);
if
(
check_ndb_connection
())
{
free_share
(
m_share
);
m_share
=
0
;
DBUG_RETURN
(
HA_ERR_NO_CONNECTION
);
if
((
res
=
check_ndb_connection
())
||
(
res
=
get_metadata
(
name
)))
{
free_share
(
m_share
);
m_share
=
0
;
DBUG_RETURN
(
res
);
}
res
=
get_metadata
(
name
);
if
(
!
res
)
while
(
1
)
{
Ndb
*
ndb
=
get_ndb
();
if
(
ndb
->
setDatabaseName
(
m_dbname
))
{
ERR_RETURN
(
ndb
->
getNdbError
());
res
=
ndb_to_mysql_error
(
&
ndb
->
getNdbError
());
break
;
}
struct
Ndb_statistics
stat
;
res
=
ndb_get_table_statistics
(
NULL
,
false
,
ndb
,
m_tabname
,
&
stat
);
records
=
stat
.
row_count
;
if
(
!
res
)
res
=
info
(
HA_STATUS_CONST
);
break
;
}
DBUG_RETURN
(
res
);
if
(
res
)
{
free_share
(
m_share
);
m_share
=
0
;
release_metadata
();
DBUG_RETURN
(
res
);
}
DBUG_RETURN
(
0
);
}
...
...
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