diff options
author | msvensson@neptunus.(none) <> | 2006-08-07 11:29:41 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-08-07 11:29:41 +0200 |
commit | 68168c8e8fa9dc63732dce14a5aeae56fd8061eb (patch) | |
tree | f597daf95c1382eb33441dc206cb6a6a8af34c1f /tests | |
parent | 2e4dbadf9f7364ac1fa38a2850fd0d4b6cffc882 (diff) | |
download | mariadb-git-68168c8e8fa9dc63732dce14a5aeae56fd8061eb.tar.gz |
Change the 'sleep' into an explicit FLUSH LOGS command
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 |
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); |