Use RefCountedPtr instead of raw pointer

pull/19611/head
Hope Casey-Allen 6 years ago
parent 59011087b0
commit e8b9e95fa2
  1. 2
      src/core/lib/channel/channelz.h
  2. 2
      src/core/lib/surface/server.cc

@ -64,7 +64,7 @@ intptr_t GetParentUuidFromArgs(const grpc_channel_args& args);
typedef InlinedVector<intptr_t, 10> ChildRefsList;
class SocketNode;
typedef InlinedVector<SocketNode*, 10> ChildSocketsList;
typedef InlinedVector<RefCountedPtr<SocketNode>, 10> ChildSocketsList;
namespace testing {
class CallCountingHelperPeer;

@ -1248,7 +1248,7 @@ void grpc_server_populate_server_sockets(
channel_data* c = nullptr;
for (c = s->root_channel_data.next; c != &s->root_channel_data; c = c->next) {
if (c->socket_node != nullptr && c->socket_node->uuid() >= start_idx) {
server_sockets->push_back(c->socket_node.get());
server_sockets->push_back(c->socket_node);
}
}
gpr_mu_unlock(&s->mu_global);

Loading…
Cancel
Save