diff options
author | antirez <antirez@gmail.com> | 2015-07-26 23:17:55 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-07-26 23:17:55 +0200 |
commit | 40eb548a80797b93cc733876654ff0978d7381cf (patch) | |
tree | 350df88fbe266964b896edb4047045b7c0734bbf /src/config.c | |
parent | 2d9e3eb107b6b6289d5e3a51a32b3a018c96103c (diff) | |
download | redis-40eb548a80797b93cc733876654ff0978d7381cf.tar.gz |
RDMF: REDIS_OK REDIS_ERR -> C_OK C_ERR.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c index b33db70bf..7f31c4782 100644 --- a/src/config.c +++ b/src/config.c @@ -677,7 +677,7 @@ void loadServerConfig(char *filename, char *options) { #define config_set_numerical_field(_name,_var,min,max) \ } else if (!strcasecmp(c->argv[2]->ptr,_name)) { \ - if (getLongLongFromObject(o,&ll) == REDIS_ERR || ll < 0) goto badfmt; \ + if (getLongLongFromObject(o,&ll) == C_ERR || ll < 0) goto badfmt; \ if (min != LLONG_MIN && ll < min) goto badfmt; \ if (max != LLONG_MAX && ll > max) goto badfmt; \ _var = ll; @@ -727,7 +727,7 @@ void configSetCommand(client *c) { } config_set_special_field("maxclients") { int orig_value = server.maxclients; - if (getLongLongFromObject(o,&ll) == REDIS_ERR || ll < 1) goto badfmt; + if (getLongLongFromObject(o,&ll) == C_ERR || ll < 1) goto badfmt; /* Try to check if the OS is capable of supporting so many FDs. */ server.maxclients = ll; @@ -757,7 +757,7 @@ void configSetCommand(client *c) { if (enable == 0 && server.aof_state != REDIS_AOF_OFF) { stopAppendOnly(); } else if (enable && server.aof_state == REDIS_AOF_OFF) { - if (startAppendOnly() == REDIS_ERR) { + if (startAppendOnly() == C_ERR) { addReplyError(c, "Unable to turn on AOF. Check server logs."); return; |