TT#106253 cleanup TLS variables on shutdown

Change-Id: I77f88e6a34e4720f6fbd0c585d2cf9843a3b309e
pull/1194/head
Richard Fuchs 5 years ago
parent 4f5e83e681
commit 543bac908e

@ -451,3 +451,7 @@ void db_config_stream(output_t *op) {
execute_wrap(&stm_config_stream, b, NULL);
}
void db_thread_end(void) {
reset_conn();
}

@ -10,6 +10,7 @@ void db_do_stream(metafile_t *mf, output_t *op, const char *type, stream_t *, un
void db_close_stream(output_t *op);
void db_delete_stream(output_t *op);
void db_config_stream(output_t *op);
void db_thread_end(void);
#endif

@ -7,6 +7,7 @@
#include "log.h"
#include "main.h"
#include "garbage.h"
#include "db.h"
static int epoll_fd = -1;
@ -34,6 +35,7 @@ void epoll_del(int fd) {
static void poller_thread_end(void *ptr) {
mysql_thread_end();
db_thread_end();
}

Loading…
Cancel
Save