#At file:///home/msvensson/mysql/5.5-bug58195/ based on revid:magnus.blaudd@strippedw
3114 Magnus Blåudd 2010-11-15
Bug#58195 Make mysqltest poll for next epoch more often
- Speed up replicated NDB test by havin mysqltest poll every 100ms (instead
of every second) in sync_master_with_slave. Default epoch
timeout is 100ms, so that make sense.
modified:
client/mysqltest.cc
=== modified file 'client/mysqltest.cc'
--- a/client/mysqltest.cc 2010-11-14 12:51:05 +0000
+++ b/client/mysqltest.cc 2010-11-15 09:51:59 +0000
@@ -4243,7 +4243,7 @@ int do_save_master_pos()
const char latest_applied_binlog_epoch_str[]=
"latest_applied_binlog_epoch=";
if (count)
- sleep(1);
+ my_sleep(100*1000); /* 100ms */
if (mysql_query(mysql, query= "show engine ndb status"))
die("failed in '%s': %d %s", query,
mysql_errno(mysql), mysql_error(mysql));
@@ -4332,7 +4332,7 @@ int do_save_master_pos()
count++;
if (latest_handled_binlog_epoch >= start_epoch)
do_continue= 0;
- else if (count > 30)
+ else if (count > 300) /* 30s */
{
break;
}
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20101115095159-y3bwnsjcu3ibnu28.bundle
| Thread |
|---|
| • bzr commit into mysql-5.5-mtr branch (magnus.blaudd:3114) Bug#58195 | Magnus Blåudd | 15 Nov |