• Binbin's avatar
    Change the return value of rdbLoad function to enums (#11039) · 00097bf4
    Binbin authored
    The reason we do this is because in #11036, we added error
    log message when failing to open RDB file for reading.
    In loadDdataFromDisk we call rdbLoad and also check errno,
    now the logging corrupts errno (reported in alpine daily).
    
    It is not safe to rely on errno as we do today, so we change
    the return value of rdbLoad function to enums, like we have
    when loading an AOF.
    00097bf4
debug.c 81.2 KB