summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/fil/fil0fil.c4
-rw-r--r--storage/xtradb/fil/fil0fil.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c
index 4006ce4acce..32bf0b8ccd8 100644
--- a/storage/innobase/fil/fil0fil.c
+++ b/storage/innobase/fil/fil0fil.c
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1995, 2013, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2014, 2017, MariaDB Corporation. All Rights Reserved.
+Copyright (c) 2014, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -4155,6 +4155,8 @@ fil_extend_space_to_desired_size(
" failed with error %d\n",
node->name,
start_offset, len + start_offset, err);
+ } else {
+ os_file_flush(node->handle);
}
mutex_enter(&fil_system->mutex);
diff --git a/storage/xtradb/fil/fil0fil.c b/storage/xtradb/fil/fil0fil.c
index 004a80e9b13..fc305c7e01f 100644
--- a/storage/xtradb/fil/fil0fil.c
+++ b/storage/xtradb/fil/fil0fil.c
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1995, 2013, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2014, 2017, MariaDB Corporation. All Rights Reserved.
+Copyright (c) 2014, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -4990,6 +4990,8 @@ fil_extend_space_to_desired_size(
" failed with error %d\n",
node->name,
start_offset, len + start_offset, err);
+ } else {
+ os_file_flush(node->handle, TRUE);
}
mutex_enter(&fil_system->mutex);