Skip to content

Commit 00fc502

Browse files
committed
fix
1 parent 5b1e6bc commit 00fc502

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/common/upstream/cluster_manager_impl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ class ClusterManagerImpl : public ClusterManager {
178178

179179
ClusterManagerImpl& parent_;
180180
Event::Dispatcher& thread_local_dispatcher_;
181-
std::unordered_map<std::string, ClusterEntryPtr> thread_local_clusters_;
181+
// Cluster entries reference the conn pool map during destruction, so the conn pool map needs
182+
// to come first.
182183
std::unordered_map<ConstHostPtr, ConnPoolsContainer> host_http_conn_pool_map_;
184+
std::unordered_map<std::string, ClusterEntryPtr> thread_local_clusters_;
183185
const HostSet* local_host_set_{};
184186
};
185187

0 commit comments

Comments
 (0)