Commit 1d7bc3b5 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Innodb : do not call fflush() in os_get_last_error_low(), if no error

message was written.
parent ad17e8e5
...@@ -569,9 +569,8 @@ os_file_get_last_error_low( ...@@ -569,9 +569,8 @@ os_file_get_last_error_low(
REFMAN REFMAN
"operating-system-error-codes.html\n"); "operating-system-error-codes.html\n");
} }
}
fflush(stderr); fflush(stderr);
}
if (err == ERROR_FILE_NOT_FOUND) { if (err == ERROR_FILE_NOT_FOUND) {
return(OS_FILE_NOT_FOUND); return(OS_FILE_NOT_FOUND);
......
...@@ -676,9 +676,8 @@ os_file_get_last_error_low( ...@@ -676,9 +676,8 @@ os_file_get_last_error_low(
REFMAN REFMAN
"operating-system-error-codes.html\n"); "operating-system-error-codes.html\n");
} }
}
fflush(stderr); fflush(stderr);
}
if (err == ERROR_FILE_NOT_FOUND) { if (err == ERROR_FILE_NOT_FOUND) {
return(OS_FILE_NOT_FOUND); return(OS_FILE_NOT_FOUND);
......
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