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

Function streamFreeConsumer

src/t_stream.cpp:2258–2263  ·  view source on GitHub ↗

Free a consumer and associated data structures. Note that this function * will not reassign the pending messages associated with this consumer * nor will delete them from the stream, so when this function is called * to delete a consumer, and not when the whole stream is destroyed, the caller * should do some work before. */

Source from the content-addressed store, hash-verified

2256 * to delete a consumer, and not when the whole stream is destroyed, the caller
2257 * should do some work before. */
2258void streamFreeConsumer(streamConsumer *sc) {
2259 raxFree(sc->pel); /* No value free callback: the PEL entries are shared
2260 between the consumer and the main stream PEL. */
2261 sdsfree(sc->name);
2262 zfree(sc);
2263}
2264
2265/* Create a new consumer group in the context of the stream 's', having the
2266 * specified name and last server ID. If a consumer group with the same name

Callers 1

streamDelConsumerFunction · 0.85

Calls 3

raxFreeFunction · 0.85
sdsfreeFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected