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. */
| 2256 | * to delete a consumer, and not when the whole stream is destroyed, the caller |
| 2257 | * should do some work before. */ |
| 2258 | void 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 |
no test coverage detected