MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / unireg_end

Function unireg_end

sql/mysqld.cc:1146–1155  ·  view source on GitHub ↗

cleanup all memory and end program nicely. If SIGNALS_DONT_BREAK_READ is defined, this function is called by the main thread. To get MySQL to shut down nicely in this case (Mac OS X) we have to call exit() instead if pthread_exit(). @note This function never returns. */

Source from the content-addressed store, hash-verified

1144 This function never returns.
1145*/
1146void unireg_end(void)
1147{
1148 clean_up(1);
1149 my_thread_end();
1150#if defined(SIGNALS_DONT_BREAK_READ)
1151 exit(0);
1152#else
1153 pthread_exit(0); // Exit is in main thread
1154#endif
1155}
1156
1157
1158extern "C" void unireg_abort(int exit_code)

Callers

nothing calls this directly

Calls 3

my_thread_endFunction · 0.85
pthread_exitFunction · 0.85
clean_upFunction · 0.70

Tested by

no test coverage detected