Commit 8c11f86
committed
MDEV-39585 mariadb bootstrap fails to perform plugin deinitalization
mariadbd under --bootstrap failed to preform plugin deinitialization.
The sleep(2);exit is removed and replaced to a goto termination label
to perform the same shutdown procedure of the server after all the
connection closing.
To prevent a compile error about char *user being uninitialized
this sql_print_information(ER_DEFAULT(ER_NORMAL_SHUTDOWN)) is moved to
its own block. The memory free did need to occur in the bootstrap mode
too to avoid memory leak errors.
wait_for_signal_thread_to_end(), was previously in close_connections()
however its required too for --bootstrap.1 parent 787c5cf commit 8c11f86
1 file changed
Lines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | 1845 | | |
1852 | 1846 | | |
1853 | 1847 | | |
| |||
2079 | 2073 | | |
2080 | 2074 | | |
2081 | 2075 | | |
2082 | | - | |
2083 | 2076 | | |
2084 | 2077 | | |
2085 | 2078 | | |
| |||
6041 | 6034 | | |
6042 | 6035 | | |
6043 | 6036 | | |
6044 | | - | |
6045 | | - | |
6046 | | - | |
6047 | | - | |
| 6037 | + | |
6048 | 6038 | | |
6049 | 6039 | | |
6050 | 6040 | | |
| |||
6119 | 6109 | | |
6120 | 6110 | | |
6121 | 6111 | | |
6122 | | - | |
6123 | | - | |
6124 | | - | |
6125 | | - | |
6126 | | - | |
| 6112 | + | |
| 6113 | + | |
| 6114 | + | |
| 6115 | + | |
| 6116 | + | |
6127 | 6117 | | |
6128 | 6118 | | |
6129 | 6119 | | |
| |||
6132 | 6122 | | |
6133 | 6123 | | |
6134 | 6124 | | |
| 6125 | + | |
| 6126 | + | |
| 6127 | + | |
| 6128 | + | |
| 6129 | + | |
| 6130 | + | |
| 6131 | + | |
| 6132 | + | |
| 6133 | + | |
6135 | 6134 | | |
6136 | 6135 | | |
6137 | 6136 | | |
| |||
0 commit comments