Skip to content

Commit e590770

Browse files
authored
Merge pull request #4054 from sysown/v2.x_old_distro_compilation_fix
Compilation fix for old GCC version
2 parents 6907c03 + 06f160c commit e590770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MySQL_Monitor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3780,8 +3780,8 @@ void* MySQL_Monitor::monitor_dns_cache() {
37803780
if (dns_records_bookkeeping.empty() == false) {
37813781
unsigned long long current_time = monotonic_time();
37823782

3783-
for (auto itr = dns_records_bookkeeping.cbegin();
3784-
itr != dns_records_bookkeeping.cend();) {
3783+
for (auto itr = dns_records_bookkeeping.begin();
3784+
itr != dns_records_bookkeeping.end();) {
37853785
// remove orphaned records
37863786
if (hostnames.find(itr->hostname_) == hostnames.end()) {
37873787
dns_cache->remove(itr->hostname_);

0 commit comments

Comments
 (0)