Skip to content
Snippets Groups Projects
Commit fa759718 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Ignore tarantool_free() from non-main thread

panic() from non-main thread calls exit(), which fires
at_exit triggers, which try to destroy TX data.

Closes #2686
parent 577dc6b4
No related branches found
No related tags found
No related merge requests found
......@@ -461,6 +461,13 @@ tarantool_free(void)
if (getpid() != master_pid)
return;
/*
* It's better to do nothing and keep xlogs opened when
* we are called by exit() from a non-main thread.
*/
if (!cord_is_main())
return;
/* Shutdown worker pool. Waits until threads terminate. */
coio_shutdown();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment