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

Function streamFreeCG

app/redis-6.2.6/src/t_stream.c:2281–2285  ·  view source on GitHub ↗

Free a consumer group and all its associated data. */

Source from the content-addressed store, hash-verified

2279
2280/* Free a consumer group and all its associated data. */
2281void streamFreeCG(streamCG *cg) {
2282 raxFreeWithCallback(cg->pel,(void(*)(void*))streamFreeNACK);
2283 raxFreeWithCallback(cg->consumers,(void(*)(void*))streamFreeConsumer);
2284 zfree(cg);
2285}
2286
2287/* Lookup the consumer group in the specified stream and returns its
2288 * pointer, otherwise if there is no such group, NULL is returned. */

Callers 1

xgroupCommandFunction · 0.85

Calls 2

raxFreeWithCallbackFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected