MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / raxTryInsert

Function raxTryInsert

src/rax.c:911–913  ·  view source on GitHub ↗

Non overwriting insert function: this if an element with the same key * exists, the value is not updated and the function returns 0. * This is a just a wrapper for raxGenericInsert(). */

Source from the content-addressed store, hash-verified

909 * exists, the value is not updated and the function returns 0.
910 * This is a just a wrapper for raxGenericInsert(). */
911int raxTryInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
912 return raxGenericInsert(rax,s,len,data,old,0);
913}
914
915/* Find a key in the rax, returns raxNotFound special void pointer value
916 * if the item was not found, otherwise the value associated with the

Callers 7

rdbLoadObjectFunction · 0.85
trackingRememberKeysFunction · 0.85
addClientToTimeoutTableFunction · 0.85
streamReplyWithRangeFunction · 0.85
RM_DictSetCFunction · 0.85
RM_GetServerInfoFunction · 0.85

Calls 1

raxGenericInsertFunction · 0.85

Tested by

no test coverage detected