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
0e49938b
Commit
0e49938b
authored
Jul 31, 2018
by
antirez
Browse files
Better top comment for writeCommandsDeniedByDiskError().
parent
5401fe7f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
0e49938b
...
@@ -2808,7 +2808,14 @@ int prepareForShutdown(int flags) {
...
@@ -2808,7 +2808,14 @@ int prepareForShutdown(int flags) {
/* Sometimes Redis cannot accept write commands because there is a perstence
/* Sometimes Redis cannot accept write commands because there is a perstence
* error with the RDB or AOF file, and Redis is configured in order to stop
* error with the RDB or AOF file, and Redis is configured in order to stop
* accepting writes in such situation. This function returns if such a
* accepting writes in such situation. This function returns if such a
* condition is active, and the type of the condition. */
* condition is active, and the type of the condition.
*
* Function return values:
*
* DISK_ERROR_TYPE_NONE: No problems, we can accept writes.
* DISK_ERROR_TYPE_AOF: Don't accept writes: AOF errors.
* DISK_ERROR_TYPE_RDB: Don't accept writes: RDB errors.
*/
int
writeCommandsDeniedByDiskError
(
void
)
{
int
writeCommandsDeniedByDiskError
(
void
)
{
if
(
server
.
stop_writes_on_bgsave_err
&&
if
(
server
.
stop_writes_on_bgsave_err
&&
server
.
saveparamslen
>
0
&&
server
.
saveparamslen
>
0
&&
...
...
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