MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / HashTableAdd

Function HashTableAdd

src/util/dict.c:364–375  ·  view source on GitHub ↗

Add an element to the target hash table */

Source from the content-addressed store, hash-verified

362
363/* Add an element to the target hash table */
364int HashTableAdd
365(
366 dict *d,
367 void *key,
368 void *val
369) {
370 dictEntry *entry = HashTableAddRaw(d,key,NULL);
371
372 if (!entry) return DICT_ERR;
373 HashTableSetVal(d, entry, val);
374 return DICT_OK;
375}
376
377/* Low level add or find:
378 * This function adds the entry but instead of setting a value returns the

Callers 3

ExecutionPlan_FreeFunction · 0.85
_CloneOpTreeFunction · 0.85
EvalEntityUpdatesFunction · 0.85

Calls 2

HashTableAddRawFunction · 0.85
HashTableSetValFunction · 0.85

Tested by

no test coverage detected