• A
    API to lookup commands with their original name. · 7b190a08
    antirez 提交于
    A new server.orig_commands table was added to the server structure, this
    contains a copy of the commant table unaffected by rename-command
    statements in redis.conf.
    
    A new API lookupCommandOrOriginal() was added that checks both tables,
    new first, old later, so that rewriteClientCommandVector() and friends
    can lookup commands with their new or original name in order to fix the
    client->cmd pointer when the argument vector is renamed.
    
    This fixes the segfault of issue #986, but does not fix a wider range of
    problems resulting from renaming commands that actually operate on data
    and are registered into the AOF file or propagated to slaves... That is
    command renaming should be handled with care.
    7b190a08
redis.h 61.3 KB