Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
11dd3f4b
Commit
11dd3f4b
authored
Jul 31, 2018
by
antirez
Browse files
Fix writeCommandsDeniedByDiskError() inverted return value.
parent
0e49938b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
11dd3f4b
...
...
@@ -2821,11 +2821,11 @@ int writeCommandsDeniedByDiskError(void) {
server.saveparamslen > 0 &&
server.lastbgsave_status == C_ERR)
{
return
DISK_ERROR_TYPE_
AOF
;
return DISK_ERROR_TYPE_
RDB
;
} else if (server.aof_state != AOF_OFF &&
server.aof_last_write_status == C_ERR)
{
return
DISK_ERROR_TYPE_
RDB
;
return DISK_ERROR_TYPE_
AOF
;
} else {
return DISK_ERROR_TYPE_NONE;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment