From dc59dffee7b834069f69bb731db20dc232748172 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 13 Mar 2004 20:11:41 +0400 Subject: Fix for #1325 We just tried to open binlog's file twice in embedded server libmysqld/lib_sql.cc: Second opening of the log removed --- libmysqld/lib_sql.cc | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'libmysqld') diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 9af15075d65..9c837219e71 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -398,23 +398,6 @@ int init_embedded_server(int argc, char **argv, char **groups) udf_init(); #endif - if (opt_bin_log) - { - if (!opt_bin_logname) - { - char tmp[FN_REFLEN]; - /* TODO: The following should be using fn_format(); We just need to - first change fn_format() to cut the file name if it's too long. - */ - strmake(tmp,glob_hostname,FN_REFLEN-5); - strmov(strcend(tmp,'.'),"-bin"); - opt_bin_logname=my_strdup(tmp,MYF(MY_WME)); - } - open_log(&mysql_bin_log, glob_hostname, opt_bin_logname, "-bin", - opt_binlog_index_name, LOG_BIN, 0, 0, max_binlog_size); - using_update_log=1; - } - (void) thr_setconcurrency(concurrency); // 10 by default if ( -- cgit v1.2.1