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
9d8fbc46
Commit
9d8fbc46
authored
Jun 19, 2007
by
tomas@whalegate.ndb.mysql.com
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
1447f631
955c40de
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 @
9d8fbc46
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
# wait for server to connect properly to cluster
# 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
--
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
;
delete
from
mysql
.
ndb_apply_status
where
server_id
=
0
;
let
$mysql_errno
=
1
;
let
$mysql_errno
=
1
;
let
$counter
=
600
;
let
$counter
=
600
;
...
@@ -22,6 +24,7 @@ while ($mysql_errno)
...
@@ -22,6 +24,7 @@ while ($mysql_errno)
}
}
}
}
delete
from
mysql
.
ndb_apply_status
where
server_id
=
0
;
delete
from
mysql
.
ndb_apply_status
where
server_id
=
0
;
set
sql_log_bin
=
@
saved_log
;
#
#
# connected
# connected
#
#
sql/ha_ndbcluster.cc
View file @
9d8fbc46
...
@@ -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