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
955c40de
Commit
955c40de
authored
Jun 19, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#3303
- get the ndb flags right, so that the behaviour is as before
parent
04f19137
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+15
-2
No files found.
sql/ha_ndbcluster.cc
View file @
955c40de
...
@@ -6126,6 +6126,11 @@ void ha_ndbcluster::get_auto_increment(ulonglong offset, ulonglong increment,
...
@@ -6126,6 +6126,11 @@ void ha_ndbcluster::get_auto_increment(ulonglong offset, ulonglong increment,
Constructor for the NDB Cluster table handler
Constructor for the NDB Cluster table handler
*/
*/
/*
Normal flags for binlogging is that ndb has HA_HAS_OWN_BINLOGGING
and preferes HA_BINLOG_ROW_CAPABLE
Other flags are set under certain circumstaces in table_flags()
*/
#define HA_NDBCLUSTER_TABLE_FLAGS \
#define HA_NDBCLUSTER_TABLE_FLAGS \
HA_REC_NOT_IN_SEQ | \
HA_REC_NOT_IN_SEQ | \
HA_NULL_IN_KEY | \
HA_NULL_IN_KEY | \
...
@@ -7565,9 +7570,17 @@ ha_ndbcluster::records_in_range(uint inx, key_range *min_key,
...
@@ -7565,9 +7570,17 @@ ha_ndbcluster::records_in_range(uint inx, key_range *min_key,
ulonglong
ha_ndbcluster
::
table_flags
(
void
)
const
ulonglong
ha_ndbcluster
::
table_flags
(
void
)
const
{
{
THD
*
thd
=
current_thd
;
ulonglong
f
=
m_table_flags
;
if
(
m_ha_not_exact_count
)
if
(
m_ha_not_exact_count
)
return
m_table_flags
&
~
HA_STATS_RECORDS_IS_EXACT
;
f
=
f
&
~
HA_STATS_RECORDS_IS_EXACT
;
return
m_table_flags
;
/*
To allow for logging of ndb tables during stmt based logging;
flag cabablity, but also turn off flag for OWN_BINLOGGING
*/
if
(
thd
->
variables
.
binlog_format
==
BINLOG_FORMAT_STMT
)
f
=
(
f
|
HA_BINLOG_STMT_CAPABLE
)
&
~
HA_HAS_OWN_BINLOGGING
;
return
f
;
}
}
const
char
*
ha_ndbcluster
::
table_type
()
const
const
char
*
ha_ndbcluster
::
table_type
()
const
{
{
...
...
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