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

Function raxFind

app/redis-6.2.6/src/rax.c:918–927  ·  view source on GitHub ↗

Find a key in the rax, returns raxNotFound special void pointer value * if the item was not found, otherwise the value associated with the * item is returned. */

Source from the content-addressed store, hash-verified

916 * if the item was not found, otherwise the value associated with the
917 * item is returned. */
918void *raxFind(rax *rax, unsigned char *s, size_t len) {
919 raxNode *h;
920
921 debugf("### Lookup: %.*s\n", (int)len, s);
922 int splitpos = 0;
923 size_t i = raxLowWalk(rax,s,len,&h,NULL,&splitpos,NULL);
924 if (i != len || (h->iscompr && splitpos != 0) || !h->iskey)
925 return raxNotFound;
926 return raxGetData(h);
927}
928
929/* Return the memory address where the 'parent' node stores the specified
930 * 'child' pointer, so that the caller can update the pointer with another

Callers 15

disableTrackingFunction · 0.85
trackingRememberKeysFunction · 0.85
trackingInvalidateKeyRawFunction · 0.85
incrementErrorCountFunction · 0.85
rdbLoadObjectFunction · 0.85
lookupClientByIDFunction · 0.85
ACLCreateUserFunction · 0.85
ACLGetCommandIDFunction · 0.85
ACLGetUserByNameFunction · 0.85
RM_CreateTimerFunction · 0.85
RM_StopTimerFunction · 0.85

Calls 2

raxLowWalkFunction · 0.85
raxGetDataFunction · 0.85

Tested by

no test coverage detected