diff options
author | David Garcia Quintas <dgq@google.com> | 2018-01-11 18:31:13 -0800 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2018-01-11 18:31:13 -0800 |
commit | dfa2851462809a459dd734090c221ea322064c7d (patch) | |
tree | ca74377c9701531620003091888ea5632399ad2b /src/core/ext/filters/client_channel/lb_policy/subchannel_list.h | |
parent | 70fbe6261376f5e0bf7a9c62f3809730d8c93e3c (diff) |
PR comments, round 2
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy/subchannel_list.h')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy/subchannel_list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h b/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h index e4db3ef464..f146c724e0 100644 --- a/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +++ b/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h @@ -22,6 +22,7 @@ #include "src/core/ext/filters/client_channel/lb_policy_registry.h" #include "src/core/ext/filters/client_channel/subchannel.h" #include "src/core/lib/debug/trace.h" +#include "src/core/lib/support/ref_counted_ptr.h" #include "src/core/lib/transport/connectivity_state.h" // TODO(roth): This code is intended to be shared between pick_first and @@ -43,7 +44,7 @@ typedef struct { grpc_lb_subchannel_list* subchannel_list; /** subchannel itself */ grpc_subchannel* subchannel; - grpc_core::ConnectedSubchannel* connected_subchannel; + grpc_core::RefCountedPtr<grpc_core::ConnectedSubchannel> connected_subchannel; /** Is a connectivity notification pending? */ bool connectivity_notification_pending; /** notification that connectivity has changed on subchannel */ |