• Binbin's avatar
    redis-check-rdb add when_opcode check for module aux (#10859) · 0a2f7883
    Binbin authored
    In #9199, we add a `goto eoferr` in when_opcode check,
    this means that if the when_opcode check fails, we will
    abort the rdb loading, but this not reflected in the
    rdb-check tool. So someone can modify when_opcode to make
    rdb load fail, but rdb-check will report OK. Just a cleanup
    or a code consistency issue.
    ```
    serverLog: # Internal error in RDB reading offset 0, function at rdb.c:3055 -> bad when_opcode
    [offset 0] Checking RDB file dump.rdb
    [offset 109] \o/ RDB looks OK! \o/
    ```
    
    Plus a minor memory leak fix like #9860, note that it will
    exit immediately after the eoferr, so it is not strictly a
    leak, so it is also a small cleanup.
    0a2f7883
redis-check-rdb.c 16 KB