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
6ad18428
Commit
6ad18428
authored
Jun 19, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-rpl
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-rpl
parents
01617667
7f32d34e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
mysql-test/include/ndb_not_readonly.inc
mysql-test/include/ndb_not_readonly.inc
+3
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+15
-2
No files found.
mysql-test/include/ndb_not_readonly.inc
View file @
6ad18428
...
...
@@ -3,6 +3,8 @@
# wait for server to connect properly to cluster
#
--
error
0
,
ER_NO_SUCH_TABLE
,
ER_OPEN_AS_READONLY
,
ER_GET_ERRMSG
,
ER_KEY_NOT_FOUND
set
@
saved_log
=
@@
sql_log_bin
;
set
sql_log_bin
=
0
;
delete
from
mysql
.
ndb_apply_status
where
server_id
=
0
;
let
$mysql_errno
=
1
;
let
$counter
=
600
;
...
...
@@ -22,6 +24,7 @@ while ($mysql_errno)
}
}
delete
from
mysql
.
ndb_apply_status
where
server_id
=
0
;
set
sql_log_bin
=
@
saved_log
;
#
# connected
#
sql/ha_ndbcluster.cc
View file @
6ad18428
...
...
@@ -6126,6 +6126,11 @@ void ha_ndbcluster::get_auto_increment(ulonglong offset, ulonglong increment,
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 \
HA_REC_NOT_IN_SEQ | \
HA_NULL_IN_KEY | \
...
...
@@ -7565,9 +7570,17 @@ ha_ndbcluster::records_in_range(uint inx, key_range *min_key,
ulonglong
ha_ndbcluster
::
table_flags
(
void
)
const
{
THD
*
thd
=
current_thd
;
ulonglong
f
=
m_table_flags
;
if
(
m_ha_not_exact_count
)
return
m_table_flags
&
~
HA_STATS_RECORDS_IS_EXACT
;
return
m_table_flags
;
f
=
f
&
~
HA_STATS_RECORDS_IS_EXACT
;
/*
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
{
...
...
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