Merge pull request #4235 from sysown/v2.x_issue_4194

Fixed DNS cache disabling from config
pull/4247/head
René Cannaò 3 years ago committed by GitHub
commit 20bdcd7e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4463,11 +4463,9 @@ __error:
void* MySQL_Monitor::monitor_dns_cache() {
// initialize the MySQL Thread (note: this is not a real thread, just the structures associated with it)
unsigned int MySQL_Monitor__thread_MySQL_Thread_Variables_version;
unsigned int MySQL_Monitor__thread_MySQL_Thread_Variables_version = 0;
std::unique_ptr<MySQL_Thread> mysql_thr(new MySQL_Thread());
mysql_thr->curtime = monotonic_time();
MySQL_Monitor__thread_MySQL_Thread_Variables_version = GloMTH->get_global_version();
mysql_thr->refresh_variables();
if (!GloMTH) return NULL; // quick exit during shutdown/restart
constexpr unsigned int num_dns_resolver_threads = 1;

Loading…
Cancel
Save