Skip to content

Commit

Permalink
Merge pull request #4054 from sysown/v2.x_old_distro_compilation_fix
Browse files Browse the repository at this point in the history
Compilation fix for old GCC version
  • Loading branch information
renecannao authored Dec 14, 2022
2 parents 6907c03 + 06f160c commit e590770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MySQL_Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit e590770

Please sign in to comment.