Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dead condition in LoadAppendOnlyFile #792

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

git-hulk
Copy link
Contributor

Currently, RedisShake checks the AOFOk and AOFTruncated return status inside the error if the condition that would never happen, it should be moved outside.

if ret == AOFOpenErr || ret == AOFFailed {
    if ret == AOFOk || ret == AOFTruncated {
...

@CLAassistant
Copy link

CLAassistant commented Apr 24, 2024

CLA assistant check
All committers have signed the CLA.

@suxb201 suxb201 merged commit 46795d9 into tair-opensource:v4 Apr 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants