summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-08-07 11:29:41 +0200
committerunknown <msvensson@neptunus.(none)>2006-08-07 11:29:41 +0200
commit966d11ef8dabde1d4a949632c2a178c910c216c3 (patch)
treef597daf95c1382eb33441dc206cb6a6a8af34c1f /tests
parenta234e13a0513da8452b21f938821878eafeeb3aa (diff)
downloadmariadb-git-966d11ef8dabde1d4a949632c2a178c910c216c3.tar.gz
Change the 'sleep' into an explicit FLUSH LOGS command
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 7cdd82f3779..89b07143873 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -14930,7 +14930,9 @@ static void test_bug17667()
myquery(rc);
}
- sleep(1); /* The server may need time to flush the data to the log. */
+ /* Make sure the server has written the logs to disk before reading it */
+ rc= mysql_query(mysql, "flush logs");
+ myquery(rc);
master_log_filename = (char *) malloc(strlen(opt_vardir) + strlen("/log/master.log") + 1);
strcpy(master_log_filename, opt_vardir);