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
5b0f1725
Commit
5b0f1725
authored
May 08, 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
86383668
06939d4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+8
-9
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
+7
-0
No files found.
sql/ha_ndbcluster_binlog.cc
View file @
5b0f1725
...
@@ -2467,7 +2467,14 @@ ndbcluster_create_event_ops(NDB_SHARE *share, const NDBTAB *ndbtab,
...
@@ -2467,7 +2467,14 @@ ndbcluster_create_event_ops(NDB_SHARE *share, const NDBTAB *ndbtab,
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
if
(
!
binlog_filter
->
db_ok
(
share
->
db
))
int
do_schema_share
=
0
,
do_apply_status_share
=
0
;
if
(
!
schema_share
&&
strcmp
(
share
->
db
,
NDB_REP_DB
)
==
0
&&
strcmp
(
share
->
table_name
,
NDB_SCHEMA_TABLE
)
==
0
)
do_schema_share
=
1
;
else
if
(
!
apply_status_share
&&
strcmp
(
share
->
db
,
NDB_REP_DB
)
==
0
&&
strcmp
(
share
->
table_name
,
NDB_APPLY_TABLE
)
==
0
)
do_apply_status_share
=
1
;
else
if
(
!
binlog_filter
->
db_ok
(
share
->
db
))
{
{
share
->
flags
|=
NSF_NO_BINLOG
;
share
->
flags
|=
NSF_NO_BINLOG
;
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
@@ -2485,15 +2492,7 @@ ndbcluster_create_event_ops(NDB_SHARE *share, const NDBTAB *ndbtab,
...
@@ -2485,15 +2492,7 @@ ndbcluster_create_event_ops(NDB_SHARE *share, const NDBTAB *ndbtab,
TABLE
*
table
=
share
->
table
;
TABLE
*
table
=
share
->
table
;
int
do_schema_share
=
0
,
do_apply_status_share
=
0
;
int
retries
=
100
;
int
retries
=
100
;
if
(
!
schema_share
&&
strcmp
(
share
->
db
,
NDB_REP_DB
)
==
0
&&
strcmp
(
share
->
table_name
,
NDB_SCHEMA_TABLE
)
==
0
)
do_schema_share
=
1
;
else
if
(
!
apply_status_share
&&
strcmp
(
share
->
db
,
NDB_REP_DB
)
==
0
&&
strcmp
(
share
->
table_name
,
NDB_APPLY_TABLE
)
==
0
)
do_apply_status_share
=
1
;
while
(
1
)
while
(
1
)
{
{
pthread_mutex_lock
(
&
injector_mutex
);
pthread_mutex_lock
(
&
injector_mutex
);
...
...
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
View file @
5b0f1725
...
@@ -966,6 +966,13 @@ NdbEventBuffer::NdbEventBuffer(Ndb *ndb) :
...
@@ -966,6 +966,13 @@ NdbEventBuffer::NdbEventBuffer(Ndb *ndb) :
NdbEventBuffer
::~
NdbEventBuffer
()
NdbEventBuffer
::~
NdbEventBuffer
()
{
{
// todo lock? what if receive thread writes here?
// todo lock? what if receive thread writes here?
NdbEventOperationImpl
*
op
=
m_dropped_ev_op
;
while
((
op
=
m_dropped_ev_op
))
{
m_dropped_ev_op
=
m_dropped_ev_op
->
m_next
;
delete
op
->
m_facade
;
}
for
(
unsigned
j
=
0
;
j
<
m_allocated_data
.
size
();
j
++
)
for
(
unsigned
j
=
0
;
j
<
m_allocated_data
.
size
();
j
++
)
{
{
unsigned
sz
=
m_allocated_data
[
j
]
->
sz
;
unsigned
sz
=
m_allocated_data
[
j
]
->
sz
;
...
...
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