| 698 | } |
| 699 | |
| 700 | void redis_cluster::free_slaves() |
| 701 | { |
| 702 | std::vector<redis_node*>::iterator it = slaves_.begin(); |
| 703 | for (; it != slaves_.end(); ++it) { |
| 704 | delete *it; |
| 705 | } |
| 706 | |
| 707 | slaves_.clear(); |
| 708 | } |
| 709 | |
| 710 | const std::map<string, redis_node*>* redis_cluster::cluster_nodes() |
| 711 | { |