summaryrefslogtreecommitdiff
path: root/storage/maria/ma_close.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/ma_close.c')
-rw-r--r--storage/maria/ma_close.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/maria/ma_close.c b/storage/maria/ma_close.c
index b345315013b..54186613ba9 100644
--- a/storage/maria/ma_close.c
+++ b/storage/maria/ma_close.c
@@ -117,8 +117,10 @@ int maria_close(register MARIA_HA *info)
share->deleting ? FLUSH_IGNORE_CHANGED : FLUSH_RELEASE))
error= my_errno;
unmap_file(info);
- if (((share->changed && share->base.born_transactional) ||
- maria_is_crashed(info) || (share->temporary && !share->deleting)))
+ if (!internal_table &&
+ (((share->changed && share->base.born_transactional) ||
+ maria_is_crashed(info) ||
+ (share->temporary && !share->deleting))))
{
if (save_global_changed)
{