| 3836 | } |
| 3837 | |
| 3838 | int getClientTypeByName(const char *name) { |
| 3839 | if (!strcasecmp(name,"normal")) return CLIENT_TYPE_NORMAL; |
| 3840 | else if (!strcasecmp(name,"slave")) return CLIENT_TYPE_SLAVE; |
| 3841 | else if (!strcasecmp(name,"replica")) return CLIENT_TYPE_SLAVE; |
| 3842 | else if (!strcasecmp(name,"pubsub")) return CLIENT_TYPE_PUBSUB; |
| 3843 | else if (!strcasecmp(name,"master")) return CLIENT_TYPE_MASTER; |
| 3844 | else return -1; |
| 3845 | } |
| 3846 | |
| 3847 | const char *getClientTypeName(int clientType) { |
| 3848 | switch(clientType) { |
no outgoing calls
no test coverage detected