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
6e0d6456
Commit
6e0d6456
authored
Feb 02, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new
into poseidon.ndb.mysql.com:/home/tomas/mysql51
parents
ce8308a5
8978db5e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-0
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+26
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
6e0d6456
...
...
@@ -2316,6 +2316,7 @@ sub mysqld_arguments ($$$$$$) {
mtr_add_arg
(
$args
,
"
%s--ndbcluster
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--ndb-connectstring=%s
",
$prefix
,
$opt_ndbconnectstring
);
mtr_add_arg
(
$args
,
"
%s--ndb-extra-logging
",
$prefix
);
}
}
...
...
@@ -2383,6 +2384,7 @@ sub mysqld_arguments ($$$$$$) {
mtr_add_arg
(
$args
,
"
%s--ndbcluster
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--ndb-connectstring=%s
",
$prefix
,
$opt_ndbconnectstring_slave
);
mtr_add_arg
(
$args
,
"
%s--ndb-extra-logging
",
$prefix
);
}
}
# end slave
...
...
sql/ha_ndbcluster_binlog.cc
View file @
6e0d6456
...
...
@@ -1470,6 +1470,14 @@ ndb_binlog_thread_handle_schema_event(THD *thd, Ndb *ndb,
(
void
)
pthread_mutex_lock
(
&
share
->
mutex
);
bitmap_clear_all
(
&
share
->
subscriber_bitmap
[
node_id
]);
DBUG_PRINT
(
"info"
,(
"NODE_FAILURE UNSUBSCRIBE[%d]"
,
node_id
));
if
(
ndb_extra_logging
)
{
sql_print_information
(
"NDB Binlog: Node: %d, down,"
" Subscriber bitmask %x%x"
,
pOp
->
getNdbdNodeId
(),
share
->
subscriber_bitmap
[
node_id
].
bitmap
[
1
],
share
->
subscriber_bitmap
[
node_id
].
bitmap
[
0
]);
}
(
void
)
pthread_mutex_unlock
(
&
share
->
mutex
);
(
void
)
pthread_cond_signal
(
&
injector_cond
);
break
;
...
...
@@ -1482,6 +1490,15 @@ ndb_binlog_thread_handle_schema_event(THD *thd, Ndb *ndb,
(
void
)
pthread_mutex_lock
(
&
share
->
mutex
);
bitmap_set_bit
(
&
share
->
subscriber_bitmap
[
node_id
],
req_id
);
DBUG_PRINT
(
"info"
,(
"SUBSCRIBE[%d] %d"
,
node_id
,
req_id
));
if
(
ndb_extra_logging
)
{
sql_print_information
(
"NDB Binlog: Node: %d, subscribe from node %d,"
" Subscriber bitmask %x%x"
,
pOp
->
getNdbdNodeId
(),
req_id
,
share
->
subscriber_bitmap
[
node_id
].
bitmap
[
1
],
share
->
subscriber_bitmap
[
node_id
].
bitmap
[
0
]);
}
(
void
)
pthread_mutex_unlock
(
&
share
->
mutex
);
(
void
)
pthread_cond_signal
(
&
injector_cond
);
break
;
...
...
@@ -1494,6 +1511,15 @@ ndb_binlog_thread_handle_schema_event(THD *thd, Ndb *ndb,
(
void
)
pthread_mutex_lock
(
&
share
->
mutex
);
bitmap_clear_bit
(
&
share
->
subscriber_bitmap
[
node_id
],
req_id
);
DBUG_PRINT
(
"info"
,(
"UNSUBSCRIBE[%d] %d"
,
node_id
,
req_id
));
if
(
ndb_extra_logging
)
{
sql_print_information
(
"NDB Binlog: Node: %d, unsubscribe from node %d,"
" Subscriber bitmask %x%x"
,
pOp
->
getNdbdNodeId
(),
req_id
,
share
->
subscriber_bitmap
[
node_id
].
bitmap
[
1
],
share
->
subscriber_bitmap
[
node_id
].
bitmap
[
0
]);
}
(
void
)
pthread_mutex_unlock
(
&
share
->
mutex
);
(
void
)
pthread_cond_signal
(
&
injector_cond
);
break
;
...
...
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