summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-03-13 20:11:41 +0400
committerunknown <hf@deer.(none)>2004-03-13 20:11:41 +0400
commitdc59dffee7b834069f69bb731db20dc232748172 (patch)
tree575fec4bd7b6ffbe6892aecf010c045cd6430792 /libmysqld
parent8b11f1c10620b40c9fa654f3738daeab4369f8b6 (diff)
downloadmariadb-git-dc59dffee7b834069f69bb731db20dc232748172.tar.gz
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
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc17
1 files changed, 0 insertions, 17 deletions
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 (