• guybe7's avatar
    RM_CreateCommand should not set CMD_KEY_VARIABLE_FLAGS automatically (#11320) · 3330ea18
    guybe7 authored
    The original idea behind auto-setting the default (first,last,step) spec was to use
    the most "open" flags when the user didn't provide any key-spec flags information.
    
    While the above idea is a good approach, it really makes no sense to set
    CMD_KEY_VARIABLE_FLAGS if the user didn't provide the getkeys-api flag:
    in this case there's not way to retrieve these variable flags, so what's the point?
    
    Internally in redis there was code to ignore this already, so this fix doesn't change
    redis's behavior, it only affects the output of COMMAND command.
    3330ea18
module.c 516 KB