• YaacovHazan's avatar
    fix return value of loadAppendOnlyFiles (#10295) · 65e4bce0
    YaacovHazan authored
    
    
    Make sure the status return from loading multiple AOF files reflects the overall
    result, not just the one of the last file.
    
    When one of the AOF files succeeded to load, but the last AOF file
    was empty, the loadAppendOnlyFiles will return AOF_EMPTY.
    This commit changes this behavior, and return AOF_OK in that case.
    
    This can happen for example, when loading old AOF file, and no more commands processed,
    the manifest file will include base AOF file with data, and empty incr AOF file.
    Co-authored-by: default avatarchenyang8094 <chenyang8094@users.noreply.github.com>
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    65e4bce0
aof.c 93.5 KB