• antirez's avatar
    Properly init/release iterators in zunionInterGenericCommand(). · bf3932ed
    antirez authored
    This commit does mainly two things:
    
    1) It fixes zunionInterGenericCommand() by removing mass-initialization
    of all the iterators used, so that we don't violate the unsafe iterator
    API of dictionaries. This fixes issue #1240.
    
    2) Since the zui* APIs required the allocator to be initialized in the
    zsetopsrc structure in order to use non-iterator related APIs, this
    commit fixes this strict requirement by accessing objects directly via
    the op->subject->ptr pointer we have to the object.
    bf3932ed
t_zset.c 69.8 KB