Commit 852c35f5 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent 83b47134
/***************************************************************************** /*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved. 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 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 the terms of the GNU General Public License as published by the Free Software
...@@ -1108,7 +1108,7 @@ fsp_fill_free_list( ...@@ -1108,7 +1108,7 @@ fsp_fill_free_list(
skip_resize = !srv_sys_space.can_auto_extend_last_file(); skip_resize = !srv_sys_space.can_auto_extend_last_file();
break; break;
case SRV_TMP_SPACE_ID: 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; break;
} }
......
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