Commit 740d3e7a authored by Monty's avatar Monty

Trivial fixes:

- Removed not used variable 'file' from MYSQL_BIN_LOG::open()
- Assigned not initialized variable in connect/tabext.cpp
parent 3c63e2f8
...@@ -3694,7 +3694,6 @@ bool MYSQL_BIN_LOG::open(const char *log_name, ...@@ -3694,7 +3694,6 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
bool null_created_arg, bool null_created_arg,
bool need_mutex) bool need_mutex)
{ {
File file= -1;
xid_count_per_binlog *new_xid_list_entry= NULL, *b; xid_count_per_binlog *new_xid_list_entry= NULL, *b;
DBUG_ENTER("MYSQL_BIN_LOG::open"); DBUG_ENTER("MYSQL_BIN_LOG::open");
...@@ -4090,8 +4089,6 @@ bool MYSQL_BIN_LOG::open(const char *log_name, ...@@ -4090,8 +4089,6 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
sql_print_error(fatal_log_error, (name) ? name : log_name, tmp_errno); sql_print_error(fatal_log_error, (name) ? name : log_name, tmp_errno);
if (new_xid_list_entry) if (new_xid_list_entry)
delete new_xid_list_entry; delete new_xid_list_entry;
if (file >= 0)
mysql_file_close(file, MYF(0));
close(LOG_CLOSE_INDEX); close(LOG_CLOSE_INDEX);
DBUG_RETURN(1); DBUG_RETURN(1);
} }
...@@ -5363,8 +5360,6 @@ int MYSQL_BIN_LOG::new_file_without_locking() ...@@ -5363,8 +5360,6 @@ int MYSQL_BIN_LOG::new_file_without_locking()
/** /**
Start writing to a new log file or reopen the old file. Start writing to a new log file or reopen the old file.
@param need_lock Set to 1 if caller has not locked LOCK_log
@retval @retval
nonzero - error nonzero - error
......
...@@ -330,7 +330,7 @@ bool TDBEXT::MakeSrcdef(PGLOBAL g) ...@@ -330,7 +330,7 @@ bool TDBEXT::MakeSrcdef(PGLOBAL g)
char *catp = strstr(Srcdef, "%s"); char *catp = strstr(Srcdef, "%s");
if (catp) { if (catp) {
char *fil1 = 0, *fil2; char *fil1 = 0, *fil2= 0;
PCSZ ph = ((EXTDEF*)To_Def)->Phpos; PCSZ ph = ((EXTDEF*)To_Def)->Phpos;
if (!ph) if (!ph)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment