mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
sql/log.cc
fixed bug in find_first_log sql/mysqlbinlog.cc flose file only if we opened it sql/slave.cc changed spacing sql/sql_repl.cc fixed error message sql/log.cc: fixed bug in find_first_log sql/mysqlbinlog.cc: flose file only if we opened it sql/slave.cc: changed spacing sql/sql_repl.cc: fixed error message BitKeeper/etc/ignore: Added repl-tests/test-repl/foo-dump-slave.master. repl-tests/test-repl/sum-wlen-slave.master. repl-tests/test-repl/sum-wlen-slave.master.re to the ignore list
This commit is contained in:
@ -310,7 +310,7 @@ Unfortunately, no sweepstakes today, adjusted position to 4\n");
|
||||
|
||||
static void dump_local_log_entries(const char* logname)
|
||||
{
|
||||
File fd;
|
||||
File fd = -1;
|
||||
IO_CACHE cache,*file= &cache;
|
||||
int rec_count = 0;
|
||||
|
||||
@ -368,7 +368,8 @@ read error",
|
||||
rec_count++;
|
||||
delete ev;
|
||||
}
|
||||
my_close(fd, MYF(MY_WME));
|
||||
if(fd >= 0)
|
||||
my_close(fd, MYF(MY_WME));
|
||||
end_io_cache(file);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user