From 0e49938b684ec3d294457391e746b42a539c88cb Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 31 Jul 2018 13:10:37 +0200 Subject: [PATCH] Better top comment for writeCommandsDeniedByDiskError(). --- src/server.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 2e0c3601..fbbfba7f 100644 --- a/src/server.c +++ b/src/server.c @@ -2808,7 +2808,14 @@ int prepareForShutdown(int flags) { /* 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 * 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) { if (server.stop_writes_on_bgsave_err && server.saveparamslen > 0 &&