Merge pull request #4054 from sysown/v2.x_old_distro_compilation_fix

Compilation fix for old GCC version
v2.x-CI-hostname-tap-test-fixes v2.4.5
René Cannaò 3 years ago committed by GitHub
commit e5907701df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3780,8 +3780,8 @@ void* MySQL_Monitor::monitor_dns_cache() {
if (dns_records_bookkeeping.empty() == false) {
unsigned long long current_time = monotonic_time();
for (auto itr = dns_records_bookkeeping.cbegin();
itr != dns_records_bookkeeping.cend();) {
for (auto itr = dns_records_bookkeeping.begin();
itr != dns_records_bookkeeping.end();) {
// remove orphaned records
if (hostnames.find(itr->hostname_) == hostnames.end()) {
dns_cache->remove(itr->hostname_);

Loading…
Cancel
Save