diff options
author | Binbin <binloveplay1314@qq.com> | 2022-08-04 15:47:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 10:47:37 +0300 |
commit | 4505eb18213c8da31c6dd39ba7cd36d3d01141a5 (patch) | |
tree | 4cbf4047cac3d13ff1b17145fb358a7bc6627702 /tests/integration | |
parent | 6686c6d774fcf71fffbaeff798c997ab3eff80de (diff) | |
download | redis-4505eb18213c8da31c6dd39ba7cd36d3d01141a5.tar.gz |
errno cleanup around rdbLoad (#11042)
This is an addition to #11039, which cleans up rdbLoad* related errno. Remove the
errno print from the outer message (may be invalid since errno may have been overwritten).
Our aim should be the code that detects the error and knows which system call
triggered it, is the one to print errno, and not the code way up above (in some cases
a result of a logical error and not a system one).
Remove the code to update errno in rdbLoadRioWithLoadingCtx, signature check
and the rdb version check, in these cases, we do print the error message.
The caller dose not have the specific logic for handling EINVAL.
Small fix around rdb-preamble AOF: A truncated RDB is considered a failure,
not handled the same as a truncated AOF file.
Diffstat (limited to 'tests/integration')
0 files changed, 0 insertions, 0 deletions