MCPcopy Create free account
hub / github.com/antirez/ds4 / kv_cache_open

Function kv_cache_open

ds4_server.c:8607–8611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8605 b->dsml = xstrndup(dsml, len);
8606 b->len = len;
8607 b->bytes = len + 1 + sizeof(*b);
8608 if (!raxInsert(m->by_block, (unsigned char *)b->dsml, b->len, b, NULL)) {
8609 free(b->dsml);
8610 free(b);
8611 die("out of memory");
8612 }
8613 m->bytes += b->bytes;
8614 return b;

Callers 1

mainFunction · 0.85

Calls 1

ds4_kvstore_openFunction · 0.85

Tested by

no test coverage detected