Commit a3b65091 authored by unknown's avatar unknown

Bug #27292 restarting a data node makes sql nodes log event buffer status every few seconds

parent 738b2dd8
...@@ -3808,6 +3808,17 @@ pthread_handler_t ndb_binlog_thread_func(void *arg) ...@@ -3808,6 +3808,17 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
res= i_ndb->pollEvents(tot_poll_wait, &gci); res= i_ndb->pollEvents(tot_poll_wait, &gci);
tot_poll_wait= 0; tot_poll_wait= 0;
} }
else
{
/*
Just consume any events, not used if no binlogging
e.g. node failure events
*/
Uint64 tmp_gci;
if (i_ndb->pollEvents(0, &tmp_gci))
while (i_ndb->nextEvent())
;
}
int schema_res= s_ndb->pollEvents(tot_poll_wait, &schema_gci); int schema_res= s_ndb->pollEvents(tot_poll_wait, &schema_gci);
ndb_latest_received_binlog_epoch= gci; ndb_latest_received_binlog_epoch= gci;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment