MCPcopy Create free account
hub / github.com/F-Stack/f-stack / incrementErrorCount

Function incrementErrorCount

app/redis-6.2.6/src/server.c:4259–4267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4257/* ====================== Error lookup and execution ===================== */
4258
4259void 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

Callers 1

afterErrorReplyFunction · 0.85

Calls 3

raxFindFunction · 0.85
zmallocFunction · 0.85
raxInsertFunction · 0.85

Tested by

no test coverage detected