Add error log message when failing to open RDB file for reading#11036
Add error log message when failing to open RDB file for reading#11036oranagra merged 1 commit intoredis:unstablefrom
Conversation
|
look like it somehow break the alpine test: https://github.com/redis/redis/runs/7511034530?check_suite_focus=true#step:7:93 odd, it look errno will change, i tested it like this, doing a |
|
ohh, i missed the fact the caller checks the errno already, and now the logging corrupts errno. so i think we should either:
|
The reason we do this is because in redis#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.
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.
…s#11036) When failing to open the rdb file, there was no specific error printed (unlike a corrupt file), so it was not clear what failed and why.
The reason we do this is because in redis#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.
When failing to open the rdb file, there was no specific error printed (unlike a corrupt file), so it was not clear what failed and why.