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

Function show_master

lib_acl_cpp/samples/redis/redis_role/redis.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12static void show_master(const acl::redis_role4master& master)
13{
14 printf("master node:\r\n");
15 printf("\toffset=%lld\r\n", master.get_offset());
16
17 const std::vector<acl::redis_role4slave>& slaves = master.get_slaves();
18 for (std::vector<acl::redis_role4slave>::const_iterator
19 cit = slaves.begin(); cit != slaves.end(); ++cit) {
20 show_slave(*cit);
21 }
22}
23
24static bool test(acl::redis_role& cmd)
25{

Callers 1

testFunction · 0.70

Calls 4

show_slaveFunction · 0.85
get_slavesMethod · 0.80
beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…