From 9185518bda68cdb191f0d8db054712ae6efcf71a Mon Sep 17 00:00:00 2001 From: Tim Stack Date: Mon, 19 Sep 2022 09:13:01 -0700 Subject: [PATCH] [top_status_source] try to fix prepared_stmt destruct order --- src/top_status_source.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/top_status_source.cc b/src/top_status_source.cc index 4a0dcaac..1c7c1d5e 100644 --- a/src/top_status_source.cc +++ b/src/top_status_source.cc @@ -103,7 +103,7 @@ struct user_msg_stmt { void top_status_source::update_user_msg() { - static user_msg_stmt um_stmt; + static thread_local user_msg_stmt um_stmt; auto& al = this->tss_fields[TSF_USER_MSG].get_value(); al.clear();