summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/innobase/os/os0file.cc3
-rw-r--r--storage/xtradb/os/os0file.cc3
2 files changed, 2 insertions, 4 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 5a945aae7bc..44093935bc7 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -569,10 +569,9 @@ os_file_get_last_error_low(
REFMAN
"operating-system-error-codes.html\n");
}
+ fflush(stderr);
}
- fflush(stderr);
-
if (err == ERROR_FILE_NOT_FOUND) {
return(OS_FILE_NOT_FOUND);
} else if (err == ERROR_DISK_FULL) {
diff --git a/storage/xtradb/os/os0file.cc b/storage/xtradb/os/os0file.cc
index 32536306320..f3c72576501 100644
--- a/storage/xtradb/os/os0file.cc
+++ b/storage/xtradb/os/os0file.cc
@@ -676,10 +676,9 @@ os_file_get_last_error_low(
REFMAN
"operating-system-error-codes.html\n");
}
+ fflush(stderr);
}
- fflush(stderr);
-
if (err == ERROR_FILE_NOT_FOUND) {
return(OS_FILE_NOT_FOUND);
} else if (err == ERROR_DISK_FULL) {