Commit 5999d51
committed
MDEV-23399 fixup: Avoid crash on Mariabackup shutdown
innodb_preshutdown(): Terminate the encryption threads before the page cleaner thread can be shut down. innodb_shutdown(): Always wait for the encryption threads and page cleaner to shut down. srv_shutdown_all_bg_threads(): Wait for the encryption threads and the page cleaner to shut down. (After an aborted startup, innodb_shutdown() would not be called.) row_get_background_drop_list_len_low(): Remove. os_thread_count: Remove. Alternatively, at the end of srv_shutdown_all_bg_threads() we could try to wait longer for the count to reach 0. On some platforms, an assertion os_thread_count==0 could fail even after a small delay, even though in the core dump all threads would have exited. srv_shutdown_threads(): Renamed from srv_shutdown_all_bg_threads(). Do not wait for the page cleaner to shut down, because the later innodb_shutdown(), which may invoke logs_empty_and_mark_files_at_shutdown(), assumes that it exists.1 parent d8515c8 commit 5999d51
File tree
5 files changed
+32
-62
lines changed- extra/mariabackup
- storage/innobase
- buf
- include
- os
- srv
5 files changed
+32
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3418 | 3418 | | |
3419 | 3419 | | |
3420 | 3420 | | |
3421 | | - | |
3422 | | - | |
3423 | | - | |
3424 | | - | |
3425 | | - | |
| 3421 | + | |
| 3422 | + | |
3426 | 3423 | | |
3427 | | - | |
3428 | | - | |
3429 | | - | |
| 3424 | + | |
| 3425 | + | |
3430 | 3426 | | |
3431 | 3427 | | |
3432 | 3428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
| 1990 | + | |
1990 | 1991 | | |
| 1992 | + | |
| 1993 | + | |
1991 | 1994 | | |
1992 | 1995 | | |
1993 | 1996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
113 | | - | |
114 | | - | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
| |||
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
128 | | - | |
129 | | - | |
130 | 123 | | |
131 | 124 | | |
132 | 125 | | |
| |||
135 | 128 | | |
136 | 129 | | |
137 | 130 | | |
138 | | - | |
139 | | - | |
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
| |||
152 | 143 | | |
153 | 144 | | |
154 | 145 | | |
155 | | - | |
156 | | - | |
157 | 146 | | |
158 | 147 | | |
159 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
| 825 | + | |
| 826 | + | |
830 | 827 | | |
831 | 828 | | |
832 | 829 | | |
| |||
838 | 835 | | |
839 | 836 | | |
840 | 837 | | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
| 838 | + | |
| 839 | + | |
868 | 840 | | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | 841 | | |
874 | 842 | | |
875 | 843 | | |
| |||
916 | 884 | | |
917 | 885 | | |
918 | 886 | | |
919 | | - | |
| 887 | + | |
920 | 888 | | |
921 | 889 | | |
922 | 890 | | |
| |||
1972 | 1940 | | |
1973 | 1941 | | |
1974 | 1942 | | |
| 1943 | + | |
| 1944 | + | |
1975 | 1945 | | |
1976 | 1946 | | |
1977 | | - | |
1978 | 1947 | | |
1979 | 1948 | | |
1980 | 1949 | | |
| |||
2010 | 1979 | | |
2011 | 1980 | | |
2012 | 1981 | | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
2013 | 1985 | | |
2014 | 1986 | | |
2015 | 1987 | | |
| |||
2020 | 1992 | | |
2021 | 1993 | | |
2022 | 1994 | | |
2023 | | - | |
2024 | 1995 | | |
| 1996 | + | |
| 1997 | + | |
2025 | 1998 | | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
2026 | 2010 | | |
2027 | 2011 | | |
2028 | 2012 | | |
| |||
2032 | 2016 | | |
2033 | 2017 | | |
2034 | 2018 | | |
2035 | | - | |
| 2019 | + | |
| 2020 | + | |
2036 | 2021 | | |
2037 | 2022 | | |
2038 | 2023 | | |
| |||
0 commit comments