Skip to content

Commit

Permalink
use iterator, not const_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
amidvidy committed Sep 30, 2014
1 parent e1fe202 commit f0a0d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/client/replica_set_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ namespace {
ConnectionCache::getConnectionTo(const HostAndPort& host) {
{
boost::lock_guard<boost::mutex> lk(_cacheLock);
ConnectionMap::const_iterator connEntry = _cacheStorage.find(host);
ConnectionMap::iterator connEntry = _cacheStorage.find(host);
if (connEntry != _cacheStorage.end() && connectionOk(connEntry->second)) {
boost::shared_ptr<DBClientConnection> conn(connEntry->second);
_cacheStorage.erase(connEntry);
Expand Down

0 comments on commit f0a0d54

Please sign in to comment.