ability to specify a different file name for the DB
This commit is contained in:
parent
85dd2f3ad2
commit
b8b553c84f
@ -1,3 +1,6 @@
|
||||
2009-04-27 log file parsing code improved a bit
|
||||
2009-04-27 bgsave_in_progress field in INFO output
|
||||
2009-04-27 INCRBY/DECRBY now support 64bit increments, with tests
|
||||
2009-04-23 RANDOMKEY regression test added
|
||||
2009-04-23 dictGetRandomKey bug fixed, RANDOMKEY will not block the server anymore
|
||||
2009-04-22 FLUSHALL/FLUSHDB no longer sync on disk. Just increment the dirty counter by the number of elements removed, that will probably trigger a background saving operation
|
||||
|
1
TODO
1
TODO
@ -7,7 +7,6 @@ BEFORE REDIS 1.0.0-rc1
|
||||
- network layer stresser in test in demo, make sure to set/get random streams of data and check that what we read back is byte-by-byte the same.
|
||||
- maxclients directive
|
||||
- check 'server.dirty' everywere
|
||||
- config parameter to change the name of the DB file
|
||||
- replication automated tests
|
||||
- an external tool able to perform the 'difference' between two Redis servers. It's like 'diff', but against Redis servers, and the output is the set of commands needed to turn the first server into the second, suitable to be sent via netcat.
|
||||
$ ./redis-diff 192.168.1.1 192.168.1.2 > diff.txt
|
||||
|
2
redis.c
2
redis.c
@ -1001,6 +1001,8 @@ static void loadServerConfig(char *filename) {
|
||||
server.requirepass = zstrdup(argv[1]);
|
||||
} else if (!strcmp(argv[0],"pidfile") && argc == 2) {
|
||||
server.pidfile = zstrdup(argv[1]);
|
||||
} else if (!strcmp(argv[0],"dbfilename") && argc == 2) {
|
||||
server.dbfilename = zstrdup(argv[1]);
|
||||
} else {
|
||||
err = "Bad directive or wrong number of arguments"; goto loaderr;
|
||||
}
|
||||
|
@ -34,6 +34,9 @@ save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
|
||||
# The filename where to dump the DB
|
||||
dbfilename dump.rdb
|
||||
|
||||
# For default save/load DB in/from the working directory
|
||||
# Note that you must specify a directory not a file name.
|
||||
dir ./
|
||||
@ -50,7 +53,9 @@ loglevel debug
|
||||
# output for logging but daemonize, logs will be sent to /dev/null
|
||||
logfile stdout
|
||||
|
||||
# Set the number of databases.
|
||||
# Set the number of databases. The default database is DB 0, you can select
|
||||
# a different one on a per-connection basis using SELECT <dbid> where
|
||||
# dbid is a number between 0 and 'databases'-1
|
||||
databases 16
|
||||
|
||||
################################# REPLICATION #################################
|
||||
|
Loading…
Reference in New Issue
Block a user