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
4f58f189
Commit
4f58f189
authored
Jun 28, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
888b8e05
4fe03aca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+33
-1
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+1
-0
No files found.
sql/ha_ndbcluster.cc
View file @
4f58f189
...
...
@@ -414,6 +414,37 @@ void ha_ndbcluster::set_rec_per_key()
DBUG_VOID_RETURN
;
}
ha_rows
ha_ndbcluster
::
records
()
{
ha_rows
retval
;
DBUG_ENTER
(
"ha_ndbcluster::records"
);
struct
Ndb_local_table_statistics
*
info
=
m_table_info
;
DBUG_PRINT
(
"info"
,
(
"id=%d, no_uncommitted_rows_count=%d"
,
((
const
NDBTAB
*
)
m_table
)
->
getTableId
(),
info
->
no_uncommitted_rows_count
));
Ndb
*
ndb
=
get_ndb
();
ndb
->
setDatabaseName
(
m_dbname
);
struct
Ndb_statistics
stat
;
if
(
ndb_get_table_statistics
(
ndb
,
m_table
,
&
stat
)
==
0
)
{
retval
=
stat
.
row_count
;
}
else
{
/**
* Be consistent with BUG#19914 until we fix it properly
*/
DBUG_RETURN
(
-
1
);
}
THD
*
thd
=
current_thd
;
if
(
get_thd_ndb
(
thd
)
->
error
)
info
->
no_uncommitted_rows_count
=
0
;
DBUG_RETURN
(
retval
+
info
->
no_uncommitted_rows_count
);
}
void
ha_ndbcluster
::
records_update
()
{
if
(
m_ha_not_exact_count
)
...
...
@@ -5455,7 +5486,8 @@ void ha_ndbcluster::get_auto_increment(ulonglong offset, ulonglong increment,
HA_PRIMARY_KEY_REQUIRED_FOR_POSITION | \
HA_PRIMARY_KEY_REQUIRED_FOR_DELETE | \
HA_PARTIAL_COLUMN_READ | \
HA_HAS_OWN_BINLOGGING
HA_HAS_OWN_BINLOGGING | \
HA_HAS_RECORDS
ha_ndbcluster
::
ha_ndbcluster
(
TABLE_SHARE
*
table_arg
)
:
handler
(
&
ndbcluster_hton
,
table_arg
),
...
...
sql/ha_ndbcluster.h
View file @
4f58f189
...
...
@@ -622,6 +622,7 @@ class ha_ndbcluster: public handler
int
read_multi_range_next
(
KEY_MULTI_RANGE
**
found_range_p
);
bool
get_error_message
(
int
error
,
String
*
buf
);
ha_rows
records
();
void
info
(
uint
);
void
get_dynamic_partition_info
(
PARTITION_INFO
*
stat_info
,
uint
part_id
);
int
extra
(
enum
ha_extra_function
operation
);
...
...
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