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

bugfix: errno might change before logging #2666

Merged
merged 1 commit into from Jul 17, 2015
Merged

bugfix: errno might change before logging #2666

merged 1 commit into from Jul 17, 2015

Conversation

Abioy
Copy link
Contributor

@Abioy Abioy commented Jul 10, 2015

bugfix: errno might change before logging

Signed-off-by: Yongyue Sun abioy.sun@gmail.com

fclose(fp);
redisLog(REDIS_WARNING,"Write error writing append only file on disk: %s", strerror(errno_saved));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about moving redisLog line before fclose. it will remove using errno_saved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, you're right

Signed-off-by: Yongyue Sun <abioy.sun@gmail.com>
antirez added a commit that referenced this pull request Jul 17, 2015
bugfix: errno might change before logging
@antirez antirez merged commit d3688e8 into redis:2.8 Jul 17, 2015
@antirez
Copy link
Contributor

antirez commented Jul 17, 2015

Good catch, thanks!

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Aug 29, 2016
bugfix: errno might change before logging
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.

None yet

3 participants