Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
1da25e65
Commit
1da25e65
authored
18 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Bug #20843 tests fails randomly with assertion in completeClusterFailed
parent
070632e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+10
-3
No files found.
sql/ha_ndbcluster_binlog.cc
View file @
1da25e65
...
...
@@ -3442,8 +3442,8 @@ restart:
// wait for the first event
thd
->
proc_info
=
"Waiting for first event from ndbcluster"
;
DBUG_PRINT
(
"info"
,
(
"Waiting for the first event"
));
int
schema_res
=
0
;
Uint64
schema_gci
=
0
;
int
schema_res
=
0
,
res
=
0
;
Uint64
schema_gci
=
0
,
gci
=
0
;
while
(
schema_res
==
0
&&
!
abort_loop
)
{
schema_res
=
s_ndb
->
pollEvents
(
100
,
&
schema_gci
);
...
...
@@ -3452,7 +3452,14 @@ restart:
DBUG_PRINT
(
"info"
,
(
"schema_res: %d schema_gci: %d"
,
schema_res
,
schema_gci
));
if
(
schema_res
>
0
)
{
i_ndb
->
pollEvents
(
0
);
while
(
res
>=
0
&&
gci
<
schema_gci
&&
!
abort_loop
)
{
res
=
i_ndb
->
pollEvents
(
100
,
&
gci
);
}
if
(
gci
>
schema_gci
)
{
schema_gci
=
gci
;
}
i_ndb
->
flushIncompleteEvents
(
schema_gci
);
s_ndb
->
flushIncompleteEvents
(
schema_gci
);
if
(
schema_gci
<
ndb_latest_handled_binlog_epoch
)
...
...
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