MCPcopy Create free account
hub / github.com/apache/brpc / AddServer

Method AddServer

src/brpc/server_id.cpp:34–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool ServerId2SocketIdMapper::AddServer(const ServerId& server) {
35 return (++_nref_map[server.id] == 1);
36}
37
38bool ServerId2SocketIdMapper::RemoveServer(const ServerId& server) {
39 int* nref = _nref_map.seek(server.id);

Callers 1

TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36