Avoid magic "0" argument to prepareForShutdown().

Backported from Disque.
This commit is contained in:
antirez
2015-07-28 11:10:42 +02:00
parent 5cfb792777
commit 813ff7fdde
2 changed files with 5 additions and 4 deletions

View File

@ -368,9 +368,10 @@ typedef long long mstime_t; /* millisecond time type. */
#define UNIT_MILLISECONDS 1
/* SHUTDOWN flags */
#define SHUTDOWN_SAVE 1 /* Force SAVE on SHUTDOWN even if no save
points are configured. */
#define SHUTDOWN_NOSAVE 2 /* Don't SAVE on SHUTDOWN. */
#define SHUTDOWN_NOFLAGS 0 /* No flags. */
#define SHUTDOWN_SAVE 1 /* Force SAVE on SHUTDOWN even if no save
points are configured. */
#define SHUTDOWN_NOSAVE 2 /* Don't SAVE on SHUTDOWN. */
/* Command call flags, see call() function */
#define CMD_CALL_NONE 0