Skip to content

Commit f2739e2

Browse files
committed
Merge 10.4 into 10.5
2 parents 0775717 + 688fb63 commit f2739e2

File tree

2 files changed

+23
-29
lines changed

2 files changed

+23
-29
lines changed

scripts/mysqld_safe.sh

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ numa_interleave=0
2323
wsrep_on=0
2424
dry_run=0
2525
defaults_group_suffix=
26-
ignore_unknown=1
2726

2827
# Initial logging status: error log is not open, and not using syslog
2928
logging=init
@@ -371,22 +370,11 @@ parse_arguments() {
371370

372371
--help) usage ;;
373372

374-
--ignore-unknown) ignore_unknown=1 ;;
375-
--no-ignore-unknown|--not-ignore-unknown) ignore_unknown=0 ;;
376-
377373
*)
378-
if test $ignore_unknown -eq 0
379-
then
380-
case "$unrecognized_handling" in
381-
collect) append_arg_to_args "$arg" ;;
382-
complain) log_error "unknown option '$arg'"
383-
esac
384-
else
385-
case "$arg" in
386-
"--loose-"*) append_arg_to_args "$arg" ;;
387-
*) append_arg_to_args "--loose-$arg"
388-
esac
389-
fi
374+
case "$unrecognized_handling" in
375+
collect) append_arg_to_args "$arg" ;;
376+
complain) log_error "unknown option '$arg'" ;;
377+
esac
390378
esac
391379
done
392380
}

storage/innobase/fil/fil0fil.cc

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,21 +1496,27 @@ void fil_system_t::create(ulint hash_size)
14961496

14971497
void fil_system_t::close()
14981498
{
1499-
ut_ad(this == &fil_system);
1500-
ut_a(!UT_LIST_GET_LEN(LRU));
1501-
ut_a(unflushed_spaces.empty());
1502-
ut_a(!UT_LIST_GET_LEN(space_list));
1503-
ut_ad(!sys_space);
1504-
ut_ad(!temp_space);
1499+
ut_ad(this == &fil_system);
1500+
ut_a(!UT_LIST_GET_LEN(LRU));
1501+
ut_a(unflushed_spaces.empty());
1502+
ut_a(!UT_LIST_GET_LEN(space_list));
1503+
ut_ad(!sys_space);
1504+
ut_ad(!temp_space);
1505+
1506+
if (is_initialised())
1507+
{
1508+
m_initialised= false;
1509+
spaces.free();
1510+
mutex_free(&mutex);
1511+
fil_space_crypt_cleanup();
1512+
}
15051513

1506-
if (is_initialised()) {
1507-
m_initialised = false;
1508-
spaces.free();
1509-
mutex_free(&mutex);
1510-
fil_space_crypt_cleanup();
1511-
}
1514+
ut_ad(!spaces.array);
15121515

1513-
ut_ad(!spaces.array);
1516+
#ifdef UNIV_LINUX
1517+
ssd.clear();
1518+
ssd.shrink_to_fit();
1519+
#endif /* UNIV_LINUX */
15141520
}
15151521

15161522
/** Opens all system tablespace data files. They stay open until the

0 commit comments

Comments
 (0)