| 5182 | /* ====================== Error lookup and execution ===================== */ |
| 5183 | |
| 5184 | void incrementErrorCount(const char *fullerr, size_t namelen) { |
| 5185 | struct redisError *error = (struct redisError*)raxFind(g_pserver->errors,(unsigned char*)fullerr,namelen); |
| 5186 | if (error == raxNotFound) { |
| 5187 | error = (struct redisError*)zmalloc(sizeof(*error)); |
| 5188 | error->count = 0; |
| 5189 | raxInsert(g_pserver->errors,(unsigned char*)fullerr,namelen,error,NULL); |
| 5190 | } |
| 5191 | error->count++; |
| 5192 | } |
| 5193 | |
| 5194 | /*================================== Shutdown =============================== */ |
| 5195 |
no test coverage detected