Skip to content

Commit

Permalink
Update source/extensions/filters/network/redis_proxy/conn_pool_impl.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Klein <mattklein123@gmail.com>
Signed-off-by: Henry Yang <hyang@lyft.com>

Signed-off-by: Henry Yang <4411287+HenryYYang@users.noreply.github.com>
  • Loading branch information
HenryYYang committed Jun 11, 2020
1 parent 463d77d commit f8aa4c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ InstanceImpl::InstanceImpl(

void InstanceImpl::init() {
// Note: `this` and `cluster_name` have a a lifetime of the filter.
// That may be shorter of the tls callback if the listener is torn shortly after it is created.
// That may be shorter than the tls callback if the listener is torn down shortly after it is created.
// We use a weak pointer to make sure this object outlives the tls callbacks.
auto this_shared_ptr = this->shared_from_this();
std::weak_ptr<InstanceImpl> this_weak_ptr = this_shared_ptr;
Expand Down

0 comments on commit f8aa4c7

Please sign in to comment.