redisLog(REDIS_WARNING,"Used tried to switch on AOF via CONFIG, but I can't open the AOF file: %s",strerror(errno));
returnREDIS_ERR;
}
if(rewriteAppendOnlyFileBackground()==REDIS_ERR){
server.appendonly=0;
close(server.appendfd);
redisLog(REDIS_WARNING,"Used tried to switch on AOF via CONFIG, I can't trigger a background AOF rewrite operation. Check the above logs for more info about the error.",strerror(errno));
returnREDIS_ERR;
}
returnREDIS_OK;
}
/* Write the append only file buffer on disk.
/* Write the append only file buffer on disk.
*
*
* Since we are required to write the AOF before replying to the client,
* Since we are required to write the AOF before replying to the client,
redisLog(REDIS_WARNING,"Used tried to switch on AOF via CONFIG, but I can't open the AOF file: %s",strerror(errno));
returnREDIS_ERR;
}
if(rewriteAppendOnlyFileBackground()==REDIS_ERR){
server.appendonly=0;
close(server.appendfd);
redisLog(REDIS_WARNING,"Used tried to switch on AOF via CONFIG, I can't trigger a background AOF rewrite operation. Check the above logs for more info about the error.",strerror(errno));
returnREDIS_ERR;
}
returnREDIS_OK;
}
}
/* =================== Virtual Memory - Blocking Side ====================== */