diff options
Diffstat (limited to 'netware/mysql_test_run.c')
-rw-r--r-- | netware/mysql_test_run.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/netware/mysql_test_run.c b/netware/mysql_test_run.c index ff629546793..8bf0b7e0016 100644 --- a/netware/mysql_test_run.c +++ b/netware/mysql_test_run.c @@ -266,6 +266,7 @@ void start_master() int err, i; char master_out[PATH_MAX]; char master_err[PATH_MAX]; + char temp[PATH_MAX]; // remove old berkeley db log files that can confuse the server removef("%s/log.*", master_dir); @@ -289,6 +290,20 @@ void start_master() if (master_init_script[0] != NULL) { // run_init_script(master_init_script); + + // TODO: use the scripts + if (strindex(master_init_script, "repair_part2-master.sh") != NULL) + { + FILE *fp; + + // create an empty index file + snprintf(temp, PATH_MAX, "%s/test/t1.MYI", master_dir); + fp = fopen(temp, "wb+"); + + fputs("1", fp); + + fclose(fp); + } } // redirection files |