mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
AOFSYNC removed, got a better idea...
This commit is contained in:
parent
279e33bee7
commit
436b423e18
9
redis.c
9
redis.c
@ -513,7 +513,6 @@ static void zscoreCommand(redisClient *c);
|
|||||||
static void zremrangebyscoreCommand(redisClient *c);
|
static void zremrangebyscoreCommand(redisClient *c);
|
||||||
static void multiCommand(redisClient *c);
|
static void multiCommand(redisClient *c);
|
||||||
static void execCommand(redisClient *c);
|
static void execCommand(redisClient *c);
|
||||||
static void aofsyncCommand(redisClient *c);
|
|
||||||
|
|
||||||
/*================================= Globals ================================= */
|
/*================================= Globals ================================= */
|
||||||
|
|
||||||
@ -582,7 +581,6 @@ static struct redisCommand cmdTable[] = {
|
|||||||
{"save",saveCommand,1,REDIS_CMD_INLINE},
|
{"save",saveCommand,1,REDIS_CMD_INLINE},
|
||||||
{"bgsave",bgsaveCommand,1,REDIS_CMD_INLINE},
|
{"bgsave",bgsaveCommand,1,REDIS_CMD_INLINE},
|
||||||
{"bgrewriteaof",bgrewriteaofCommand,1,REDIS_CMD_INLINE},
|
{"bgrewriteaof",bgrewriteaofCommand,1,REDIS_CMD_INLINE},
|
||||||
{"aofsync",aofsyncCommand,1,REDIS_CMD_INLINE},
|
|
||||||
{"shutdown",shutdownCommand,1,REDIS_CMD_INLINE},
|
{"shutdown",shutdownCommand,1,REDIS_CMD_INLINE},
|
||||||
{"lastsave",lastsaveCommand,1,REDIS_CMD_INLINE},
|
{"lastsave",lastsaveCommand,1,REDIS_CMD_INLINE},
|
||||||
{"type",typeCommand,2,REDIS_CMD_INLINE},
|
{"type",typeCommand,2,REDIS_CMD_INLINE},
|
||||||
@ -6233,13 +6231,6 @@ static void bgrewriteaofCommand(redisClient *c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void aofsyncCommand(redisClient *c) {
|
|
||||||
if (server.appendonly)
|
|
||||||
fsync(server.appendfd);
|
|
||||||
else
|
|
||||||
addReplySds(c,sdsnew("-ERR Append Only File is not active\r\n"));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void aofRemoveTempFile(pid_t childpid) {
|
static void aofRemoveTempFile(pid_t childpid) {
|
||||||
char tmpfile[256];
|
char tmpfile[256];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user