server/modules/selva/module/subscriptions.c
static void destroy_all_sub_markers(RedisModuleCtx *ctx, SelvaModify_Hierarchy *hierarchy) {
    struct hierarchy_subscriptions_tree *subs_head = &hierarchy->subs.head;
    struct Selva_Subscription *sub;
    struct Selva_Subscription *next;

	for (sub = RB_MIN(hierarchy_subscriptions_tree, subs_head); sub != NULL; sub = next) {
		next = RB_NEXT(hierarchy_subscriptions_tree, subs_head, sub);
        destroy_sub(ctx, hierarchy, sub);
    }
}
/*
 * Destroy all subscription markers and subscriptions.
 */
Destroy all subscription markers and subscriptions.
Destroy all subscription markers and subscriptions .
static void destroy_all_sub_markers(RedisModuleCtx *ctx, SelvaModify_Hierarchy *hierarchy) {
    struct hierarchy_subscriptions_tree *subs_head = &hierarchy->subs.head;
    struct Selva_Subscription *sub;
    struct Selva_Subscription *next;
	for (sub = RB_MIN(hierarchy_subscriptions_tree, subs_head); sub != NULL; sub = next) {
		next = RB_NEXT(hierarchy_subscriptions_tree, subs_head, sub);
        destroy_sub(ctx, hierarchy, sub);
    }
}
static void destroy_all_sub_markers ( RedisModuleCtx * ctx , SelvaModify_Hierarchy * hierarchy ) { struct hierarchy_subscriptions_tree * subs_head = & hierarchy -> subs . head ; struct Selva_Subscription * sub ; struct Selva_Subscription * next ; for ( sub = RB_MIN ( hierarchy_subscriptions_tree , subs_head ) ; sub != NULL ; sub = next ) { next = RB_NEXT ( hierarchy_subscriptions_tree , subs_head , sub ) ; destroy_sub ( ctx , hierarchy , sub ) ; } }
Destroy all subscription markers and subscriptions.
Destroy all subscription markers and subscriptions .