From e0e8c125c511d84e833462d172270eafd6f8e367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Thu, 9 May 2024 00:50:10 +0000 Subject: [PATCH] Adding explicitly instantiate of template class functions --- lib/Base_Thread.cpp | 3 ++- lib/ProxySQL_Admin.cpp | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Base_Thread.cpp b/lib/Base_Thread.cpp index e6b41c806..0ce574166 100644 --- a/lib/Base_Thread.cpp +++ b/lib/Base_Thread.cpp @@ -17,7 +17,8 @@ template void Base_Thread::ProcessAllMyDS_AfterPoll(); template void Base_Thread::ProcessAllMyDS_AfterPoll(); template void Base_Thread::ProcessAllMyDS_BeforePoll(); template void Base_Thread::ProcessAllMyDS_BeforePoll(); - +template void Base_Thread::register_session(MySQL_Thread*, MySQL_Session*, bool); +template void Base_Thread::register_session(PgSQL_Thread*, PgSQL_Session*, bool); Base_Thread::Base_Thread() { }; diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 88ca44213..213bb230b 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -3112,6 +3112,13 @@ bool admin_handler_command_load_or_save(char *query_no_space, unsigned int query return true; } +// Explicitly instantiate the required template class and member functions +template void ProxySQL_Admin::send_ok_msg_to_client(Client_Session&, char const*, int, char const*); +template void ProxySQL_Admin::send_ok_msg_to_client(Client_Session&, char const*, int, char const*); +template void ProxySQL_Admin::send_error_msg_to_client(Client_Session&, char const*, unsigned short); +template void ProxySQL_Admin::send_error_msg_to_client(Client_Session&, char const*, unsigned short); +template int ProxySQL_Admin::FlushDigestTableToDisk<(SERVER_TYPE)0>(SQLite3DB*); + void ProxySQL_Admin::flush_configdb() { // see #923 wrlock(); admindb->execute((char *)"DETACH DATABASE disk");