| 4257 | /* ====================== Error lookup and execution ===================== */ |
| 4258 | |
| 4259 | void incrementErrorCount(const char *fullerr, size_t namelen) { |
| 4260 | struct redisError *error = raxFind(server.errors,(unsigned char*)fullerr,namelen); |
| 4261 | if (error == raxNotFound) { |
| 4262 | error = zmalloc(sizeof(*error)); |
| 4263 | error->count = 0; |
| 4264 | raxInsert(server.errors,(unsigned char*)fullerr,namelen,error,NULL); |
| 4265 | } |
| 4266 | error->count++; |
| 4267 | } |
| 4268 | |
| 4269 | /*================================== Shutdown =============================== */ |
| 4270 |
no test coverage detected