Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed May 24, 2019
1 parent 68cb82f commit 5c12daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/runtime/client_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void ClientCacheHelper::release_client(void** client_key) {
boost::lock_guard<boost::mutex> lock(_lock);
ClientMap::iterator client_map_entry = _client_map.find(*client_key);
DCHECK(client_map_entry != _client_map.end());
ThriftClientImpl* info = i->second;
ThriftClientImpl* info = client_map_entry->second;
ClientCacheMap::iterator j = _client_cache.find(make_network_address(info->ipaddress(), info->port()));
DCHECK(j != _client_cache.end());

Expand Down
2 changes: 1 addition & 1 deletion be/src/runtime/client_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ClientCacheHelper {
private:
template <class T> friend class ClientCache;
// Private constructor so that only ClientCache can instantiate this class.
ClientCacheHelper() : _metrics_enabled(false), _max_cache_size(-1) { }
ClientCacheHelper() : _metrics_enabled(false), _max_cache_size_per_host(-1) { }

ClientCacheHelper(int max_cache_size_per_host):
_metrics_enabled(false),
Expand Down

0 comments on commit 5c12daf

Please sign in to comment.