Commit 551dd2b
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 376fbd5 commit 551dd2b
1 file changed
Lines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1871 | 1871 | | |
1872 | 1872 | | |
1873 | 1873 | | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | 1874 | | |
1881 | 1875 | | |
1882 | 1876 | | |
| |||
2109 | 2103 | | |
2110 | 2104 | | |
2111 | 2105 | | |
2112 | | - | |
2113 | 2106 | | |
2114 | 2107 | | |
2115 | 2108 | | |
| |||
6352 | 6345 | | |
6353 | 6346 | | |
6354 | 6347 | | |
6355 | | - | |
6356 | | - | |
6357 | | - | |
6358 | | - | |
| 6348 | + | |
6359 | 6349 | | |
6360 | 6350 | | |
6361 | 6351 | | |
| |||
6430 | 6420 | | |
6431 | 6421 | | |
6432 | 6422 | | |
6433 | | - | |
6434 | | - | |
6435 | | - | |
6436 | | - | |
6437 | | - | |
| 6423 | + | |
| 6424 | + | |
| 6425 | + | |
| 6426 | + | |
| 6427 | + | |
6438 | 6428 | | |
6439 | 6429 | | |
6440 | 6430 | | |
| |||
6443 | 6433 | | |
6444 | 6434 | | |
6445 | 6435 | | |
| 6436 | + | |
| 6437 | + | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
| 6442 | + | |
| 6443 | + | |
| 6444 | + | |
6446 | 6445 | | |
6447 | 6446 | | |
6448 | 6447 | | |
| |||
0 commit comments