summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_binlog.cc
diff options
context:
space:
mode:
authorunknown <tomas@whalegate.ndb.mysql.com>2007-05-09 12:51:37 +0200
committerunknown <tomas@whalegate.ndb.mysql.com>2007-05-09 12:51:37 +0200
commit2f2d02621613465bc33329170e860a3ac30e187b (patch)
tree20c5513ac977365b7d772b1e17f032cc90165faf /sql/ha_ndbcluster_binlog.cc
parentdc07107b6e605a312f262d82b8e2fac77ce1a2b1 (diff)
downloadmariadb-git-2f2d02621613465bc33329170e860a3ac30e187b.tar.gz
Bug #27292 restarting a data node makes sql nodes log event buffer status every few seconds
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r--sql/ha_ndbcluster_binlog.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc
index 25a9ccdcb87..e34421b74d6 100644
--- a/sql/ha_ndbcluster_binlog.cc
+++ b/sql/ha_ndbcluster_binlog.cc
@@ -3808,6 +3808,17 @@ restart:
res= i_ndb->pollEvents(tot_poll_wait, &gci);
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);
ndb_latest_received_binlog_epoch= gci;