Commit f48e47ea authored by bo.thorsen's avatar bo.thorsen

Fix Windows compile

parent 5b8c42d9
...@@ -2664,8 +2664,11 @@ bugs.\n"); ...@@ -2664,8 +2664,11 @@ bugs.\n");
end: end:
#ifndef __WIN__ #ifndef __WIN__
/* On Windows, do not terminate, but pass control to exception filter */ /* Terminate */
exit(1); exit(1);
#else
/* On Windows, do not terminate, but pass control to exception filter */
;
#endif #endif
} }
......
...@@ -1397,8 +1397,9 @@ LSN translog_get_file_max_lsn_stored(uint32 file) ...@@ -1397,8 +1397,9 @@ LSN translog_get_file_max_lsn_stored(uint32 file)
{ {
LOGHANDLER_FILE_INFO info; LOGHANDLER_FILE_INFO info;
File fd;
LINT_INIT_STRUCT(info); LINT_INIT_STRUCT(info);
File fd= open_logfile_by_number_no_cache(file); fd= open_logfile_by_number_no_cache(file);
if ((fd < 0) || if ((fd < 0) ||
(translog_read_file_header(&info, fd) | my_close(fd, MYF(MY_WME)))) (translog_read_file_header(&info, fd) | my_close(fd, MYF(MY_WME))))
{ {
......
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