Skip to content

Commit

Permalink
Compilation fix for old GCC version
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Dec 14, 2022
1 parent 6907c03 commit 06f160c
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 06f160c

Please sign in to comment.