mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
make append only filename configurable
This commit is contained in:
parent
f4f06efccc
commit
f3b52411db
3
redis.c
3
redis.c
@ -1886,6 +1886,9 @@ static void loadServerConfig(char *filename) {
|
|||||||
if ((server.appendonly = yesnotoi(argv[1])) == -1) {
|
if ((server.appendonly = yesnotoi(argv[1])) == -1) {
|
||||||
err = "argument must be 'yes' or 'no'"; goto loaderr;
|
err = "argument must be 'yes' or 'no'"; goto loaderr;
|
||||||
}
|
}
|
||||||
|
} else if (!strcasecmp(argv[0],"appendfilename") && argc == 2) {
|
||||||
|
zfree(server.appendfilename);
|
||||||
|
server.appendfilename = zstrdup(argv[1]);
|
||||||
} else if (!strcasecmp(argv[0],"appendfsync") && argc == 2) {
|
} else if (!strcasecmp(argv[0],"appendfsync") && argc == 2) {
|
||||||
if (!strcasecmp(argv[1],"no")) {
|
if (!strcasecmp(argv[1],"no")) {
|
||||||
server.appendfsync = APPENDFSYNC_NO;
|
server.appendfsync = APPENDFSYNC_NO;
|
||||||
|
@ -159,13 +159,14 @@ dir ./
|
|||||||
# Still if append only mode is enabled Redis will load the data from the
|
# Still if append only mode is enabled Redis will load the data from the
|
||||||
# log file at startup ignoring the dump.rdb file.
|
# log file at startup ignoring the dump.rdb file.
|
||||||
#
|
#
|
||||||
# The name of the append only file is "appendonly.aof"
|
|
||||||
#
|
|
||||||
# IMPORTANT: Check the BGREWRITEAOF to check how to rewrite the append
|
# IMPORTANT: Check the BGREWRITEAOF to check how to rewrite the append
|
||||||
# log file in background when it gets too big.
|
# log file in background when it gets too big.
|
||||||
|
|
||||||
appendonly no
|
appendonly no
|
||||||
|
|
||||||
|
# The name of the append only file (default: "appendonly.aof")
|
||||||
|
# appendfilename appendonly.aof
|
||||||
|
|
||||||
# The fsync() call tells the Operating System to actually write data on disk
|
# The fsync() call tells the Operating System to actually write data on disk
|
||||||
# instead to wait for more data in the output buffer. Some OS will really flush
|
# instead to wait for more data in the output buffer. Some OS will really flush
|
||||||
# data on disk, some other OS will just try to do it ASAP.
|
# data on disk, some other OS will just try to do it ASAP.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user