From 06f160cce169892121cd6e98e95ca2430b7709c5 Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Wed, 14 Dec 2022 17:01:00 +0500 Subject: [PATCH] Compilation fix for old GCC version --- lib/MySQL_Monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index f61d7e6492..5bb98446f2 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -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_);