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
1f05ac4a
Commit
1f05ac4a
authored
Oct 25, 2006
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post merge fixes (from merging test fixes from bug 19914)
parent
d5810cd0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
mysql-test/r/ndb_multi.result
mysql-test/r/ndb_multi.result
+4
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-8
No files found.
mysql-test/r/ndb_multi.result
View file @
1f05ac4a
...
@@ -35,6 +35,10 @@ a
...
@@ -35,6 +35,10 @@ a
select * from t1;
select * from t1;
a
a
2
2
flush status;
select * from t1;
a
2
update t1 set a=3 where a=2;
update t1 set a=3 where a=2;
show status like 'handler_discover%';
show status like 'handler_discover%';
Variable_name Value
Variable_name Value
...
...
sql/ha_ndbcluster.cc
View file @
1f05ac4a
...
@@ -449,16 +449,13 @@ ha_rows ha_ndbcluster::records()
...
@@ -449,16 +449,13 @@ ha_rows ha_ndbcluster::records()
Ndb
*
ndb
=
get_ndb
();
Ndb
*
ndb
=
get_ndb
();
ndb
->
setDatabaseName
(
m_dbname
);
ndb
->
setDatabaseName
(
m_dbname
);
struct
Ndb_statistics
stat
;
struct
Ndb_statistics
stat
;
if
(
ndb_get_table_statistics
(
ndb
,
m_table
,
&
stat
)
==
0
)
if
(
ndb_get_table_statistics
(
this
,
true
,
ndb
,
m_table
,
&
stat
)
==
0
)
{
{
retval
=
stat
.
row_count
;
retval
=
stat
.
row_count
;
}
}
else
else
{
{
/**
DBUG_RETURN
(
HA_POS_ERROR
);
* Be consistent with BUG#19914 until we fix it properly
*/
DBUG_RETURN
(
-
1
);
}
}
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
...
@@ -5760,8 +5757,10 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked)
...
@@ -5760,8 +5757,10 @@ int ha_ndbcluster::open(const char *name, int mode, uint test_if_locked)
Ndb
*
ndb
=
get_ndb
();
Ndb
*
ndb
=
get_ndb
();
ndb
->
setDatabaseName
(
m_dbname
);
ndb
->
setDatabaseName
(
m_dbname
);
struct
Ndb_statistics
stat
;
struct
Ndb_statistics
stat
;
res
=
ndb_get_table_statistics
(
NULL
,
false
,
ndb
,
m_tabname
,
&
stat
);
res
=
ndb_get_table_statistics
(
NULL
,
false
,
ndb
,
m_table
,
&
stat
);
records
=
stat
.
row_count
;
stats
.
mean_rec_length
=
stat
.
row_size
;
stats
.
data_file_length
=
stat
.
fragment_memory
;
stats
.
records
=
stat
.
row_count
;
if
(
!
res
)
if
(
!
res
)
res
=
info
(
HA_STATUS_CONST
);
res
=
info
(
HA_STATUS_CONST
);
}
}
...
@@ -6829,7 +6828,7 @@ ha_ndbcluster::records_in_range(uint inx, key_range *min_key,
...
@@ -6829,7 +6828,7 @@ ha_ndbcluster::records_in_range(uint inx, key_range *min_key,
else
else
{
{
Ndb_statistics
stat
;
Ndb_statistics
stat
;
if
((
res
=
ndb_get_table_statistics
(
ndb
,
m_table
,
&
stat
))
!=
0
)
if
((
res
=
ndb_get_table_statistics
(
this
,
true
,
ndb
,
m_table
,
&
stat
))
!=
0
)
break
;
break
;
table_rows
=
stat
.
row_count
;
table_rows
=
stat
.
row_count
;
DBUG_PRINT
(
"info"
,
(
"use db row_count: %llu"
,
table_rows
));
DBUG_PRINT
(
"info"
,
(
"use db row_count: %llu"
,
table_rows
));
...
...
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