diff options
author | Mikhail Fesenko <proggga@gmail.com> | 2021-06-30 16:49:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 16:49:54 +0300 |
commit | 74fe15b3602ed7c003b5c53e45e31f7aa6d4a86f (patch) | |
tree | 20aafdd466b101393dd008fda79cd6a77947a2fd /src/crc16_slottable.h | |
parent | eaa52719a355c4467d0383c1c9f5184c9c14fe5a (diff) | |
download | redis-74fe15b3602ed7c003b5c53e45e31f7aa6d4a86f.tar.gz |
redis-cli --rdb: fix broken fsync/ftruncate for stdout (#9135)
A change in redis 6.2 caused redis-cli --rdb that's directed to stdout to fail because fsync fails.
This commit avoids doing ftruncate (fails with a warning) and fsync (fails with an error) when the
output file is `-`, and adds the missing documentation that `-` means stdout.
Co-authored-by: Oran Agra <oran@redislabs.com>
Co-authored-by: Wang Yuan <wangyuancode@163.com>
Diffstat (limited to 'src/crc16_slottable.h')
0 files changed, 0 insertions, 0 deletions