summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-02-19 14:58:05 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-02-19 14:58:05 +0200
commit852c35f571b1b7454aab5768899e2faee8f941d4 (patch)
tree03310622c37c8cdce4d763801c555e28af9192eb
parent83b471348d6fc4e9bb4bd2e5e23b304979708a8e (diff)
downloadmariadb-git-852c35f571b1b7454aab5768899e2faee8f941d4.tar.gz
MDEV-11581 follow-up fix: Correct a condition
fsp_fill_free_list(): Correctly determine whether the temporary tablespace file should be extended in order to respond to a page allocation request. The inverted condition was noticed by Thiru when he analyzed MDEV-13013.
-rw-r--r--storage/innobase/fsp/fsp0fsp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/fsp/fsp0fsp.cc b/storage/innobase/fsp/fsp0fsp.cc
index 2531a9fb5aa..dd0148a3275 100644
--- a/storage/innobase/fsp/fsp0fsp.cc
+++ b/storage/innobase/fsp/fsp0fsp.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2017, MariaDB Corporation.
+Copyright (c) 2017, 2018, 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
@@ -1108,7 +1108,7 @@ fsp_fill_free_list(
skip_resize = !srv_sys_space.can_auto_extend_last_file();
break;
case SRV_TMP_SPACE_ID:
- skip_resize = srv_tmp_space.can_auto_extend_last_file();
+ skip_resize = !srv_tmp_space.can_auto_extend_last_file();
break;
}