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
7bbf39cd
Commit
7bbf39cd
authored
18 years ago
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb: minor modification in replication timer code
added missing setting of latest applied epoch
parent
590c8cfc
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+9
-7
No files found.
sql/ha_ndbcluster_binlog.cc
View file @
7bbf39cd
...
@@ -3095,6 +3095,9 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
...
@@ -3095,6 +3095,9 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
Thd_ndb
*
thd_ndb
=
0
;
Thd_ndb
*
thd_ndb
=
0
;
int
ndb_update_binlog_index
=
1
;
int
ndb_update_binlog_index
=
1
;
injector
*
inj
=
injector
::
instance
();
injector
*
inj
=
injector
::
instance
();
#ifdef RUN_NDB_BINLOG_TIMER
Timer
main_timer
;
#endif
pthread_mutex_lock
(
&
injector_mutex
);
pthread_mutex_lock
(
&
injector_mutex
);
/*
/*
...
@@ -3233,9 +3236,6 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
...
@@ -3233,9 +3236,6 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
thd
->
db
=
db
;
thd
->
db
=
db
;
}
}
#ifdef RUN_NDB_BINLOG_TIMER
Timer
main_timer
;
#endif
for
(
;
!
((
abort_loop
||
do_ndbcluster_binlog_close_connection
)
&&
for
(
;
!
((
abort_loop
||
do_ndbcluster_binlog_close_connection
)
&&
ndb_latest_handled_binlog_epoch
>=
g_latest_trans_gci
);
)
ndb_latest_handled_binlog_epoch
>=
g_latest_trans_gci
);
)
{
{
...
@@ -3316,15 +3316,16 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
...
@@ -3316,15 +3316,16 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
if
(
res
>
0
)
if
(
res
>
0
)
{
{
DBUG_PRINT
(
"info"
,
(
"pollEvents res: %d"
,
res
));
DBUG_PRINT
(
"info"
,
(
"pollEvents res: %d"
,
res
));
#ifdef RUN_NDB_BINLOG_TIMER
Timer
gci_timer
,
write_timer
;
int
event_count
=
0
;
#endif
thd
->
proc_info
=
"Processing events"
;
thd
->
proc_info
=
"Processing events"
;
NdbEventOperation
*
pOp
=
i_ndb
->
nextEvent
();
NdbEventOperation
*
pOp
=
i_ndb
->
nextEvent
();
Binlog_index_row
row
;
Binlog_index_row
row
;
while
(
pOp
!=
NULL
)
while
(
pOp
!=
NULL
)
{
{
#ifdef RUN_NDB_BINLOG_TIMER
Timer
gci_timer
,
write_timer
;
int
event_count
=
0
;
gci_timer
.
start
();
#endif
gci
=
pOp
->
getGCI
();
gci
=
pOp
->
getGCI
();
DBUG_PRINT
(
"info"
,
(
"Handling gci: %d"
,
(
unsigned
)
gci
));
DBUG_PRINT
(
"info"
,
(
"Handling gci: %d"
,
(
unsigned
)
gci
));
// sometimes get TE_ALTER with invalid table
// sometimes get TE_ALTER with invalid table
...
@@ -3503,6 +3504,7 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
...
@@ -3503,6 +3504,7 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
DBUG_PRINT
(
"info"
,
(
"COMMIT gci: %lld"
,
gci
));
DBUG_PRINT
(
"info"
,
(
"COMMIT gci: %lld"
,
gci
));
if
(
ndb_update_binlog_index
)
if
(
ndb_update_binlog_index
)
ndb_add_binlog_index
(
thd
,
&
row
);
ndb_add_binlog_index
(
thd
,
&
row
);
ndb_latest_applied_binlog_epoch
=
gci
;
}
}
ndb_latest_handled_binlog_epoch
=
gci
;
ndb_latest_handled_binlog_epoch
=
gci
;
#ifdef RUN_NDB_BINLOG_TIMER
#ifdef RUN_NDB_BINLOG_TIMER
...
...
This diff is collapsed.
Click to expand it.
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