| 729 | } PendingEntryContext; |
| 730 | |
| 731 | void* defragStreamConsumerPendingEntry(raxIterator *ri, void *privdata, long *defragged) { |
| 732 | UNUSED(defragged); |
| 733 | PendingEntryContext *ctx = privdata; |
| 734 | streamNACK *nack = ri->data, *newnack; |
| 735 | nack->consumer = ctx->c; /* update nack pointer to consumer */ |
| 736 | newnack = activeDefragAlloc(nack); |
| 737 | if (newnack) { |
| 738 | /* update consumer group pointer to the nack */ |
| 739 | void *prev; |
| 740 | raxInsert(ctx->cg->pel, ri->key, ri->key_len, newnack, &prev); |
| 741 | serverAssert(prev==nack); |
| 742 | /* note: we don't increment 'defragged' that's done by the caller */ |
| 743 | } |
| 744 | return newnack; |
| 745 | } |
| 746 | |
| 747 | void* defragStreamConsumer(raxIterator *ri, void *privdata, long *defragged) { |
| 748 | streamConsumer *c = ri->data; |
nothing calls this directly
no test coverage detected