addReplyError(c,"This Redis instance is not configured to use an ACL file. You may want to specify users via the ACL SETUSER command and then issue a CONFIG REWRITE (assuming you have a Redis configuration file set) in order to store users in the Redis configuration.");
return;
}elseif(!strcasecmp(sub,"load")&&c->argc==2){
sdserrors=ACLLoadFromFile(server.acl_filename);
if(errors==NULL){
addReply(c,shared.ok);
}else{
addReplyError(c,errors);
sdsfree(errors);
}
}elseif(!strcasecmp(sub,"save")&&c->argc==2){
if(ACLSaveToFile(server.acl_filename)==C_OK){
addReply(c,shared.ok);
}else{
addReplyError(c,"There was an error trying to save the ACLs. "
/* Close pipes used for IPC between the two processes. */
aofClosePipes();
closeChildInfoPipe();
updateDictResizePolicy();
}
/* Called when the user switches from "appendonly yes" to "appendonly no"
...
...
@@ -261,7 +269,7 @@ int startAppendOnly(void) {
serverLog(LL_WARNING,"AOF was enabled but there is already a child process saving an RDB file on disk. An AOF background was scheduled to start when possible.");
}else{
/* If there is a pending AOF rewrite, we need to switch it off and
* start a new one: the old one cannot be reused becuase it is not
* start a new one: the old one cannot be reused because it is not
* accumulating the AOF buffer. */
if(server.aof_child_pid!=-1){
serverLog(LL_WARNING,"AOF was enabled but there is already an AOF rewriting in background. Stopping background AOF and starting a rewrite now.");