MCPcopy Create free account
hub / github.com/acl-dev/acl / find_node

Method find_node

app/redis_tools/redis_builder/redis_reshard.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31acl::redis_node* redis_reshard::find_node(const char* id)
32{
33 std::vector<acl::redis_node*>::iterator it;
34 for (it = masters_.begin(); it != masters_.end(); ++it) {
35 if (strcmp(id, (*it)->get_id()) == 0) {
36 return *it;
37 }
38 }
39 return NULL;
40}
41
42void redis_reshard::copy_all(std::vector<acl::redis_node*>& src,
43 const char* exclude)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected