Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f579b774
Commit
f579b774
authored
Sep 10, 2018
by
antirez
Browse files
Slave removal: redis-cli --slave -> --replica.
--slave alias remains but is undocumented, just for backward compatibiltiy.
parent
ef2c7a5b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
f579b774
...
@@ -1282,6 +1282,8 @@ static int parseOptions(int argc, char **argv) {
...
@@ -1282,6 +1282,8 @@ static int parseOptions(int argc, char **argv) {
config.lru_test_sample_size = strtoll(argv[++i],NULL,10);
config.lru_test_sample_size = strtoll(argv[++i],NULL,10);
} else if (!strcmp(argv[i],"--slave")) {
} else if (!strcmp(argv[i],"--slave")) {
config.slave_mode = 1;
config.slave_mode = 1;
} else if (!strcmp(argv[i],"--replica")) {
config.slave_mode = 1;
} else if (!strcmp(argv[i],"--stat")) {
} else if (!strcmp(argv[i],"--stat")) {
config.stat_mode = 1;
config.stat_mode = 1;
} else if (!strcmp(argv[i],"--scan")) {
} else if (!strcmp(argv[i],"--scan")) {
...
@@ -1478,7 +1480,7 @@ static void usage(void) {
...
@@ -1478,7 +1480,7 @@ static void usage(void) {
" --latency-dist Shows latency as a spectrum, requires xterm 256 colors.\n"
" --latency-dist Shows latency as a spectrum, requires xterm 256 colors.\n"
" Default time interval is 1 sec. Change it using -i.\n"
" Default time interval is 1 sec. Change it using -i.\n"
" --lru-test <keys> Simulate a cache workload with an 80-20 distribution.\n"
" --lru-test <keys> Simulate a cache workload with an 80-20 distribution.\n"
" --
slave
Simulate a
slave
showing commands received from the master.\n"
" --
replica
Simulate a
replica
showing commands received from the master.\n"
" --rdb <filename> Transfer an RDB dump from remote server to local file.\n"
" --rdb <filename> Transfer an RDB dump from remote server to local file.\n"
" --pipe Transfer raw Redis protocol from stdin to server.\n"
" --pipe Transfer raw Redis protocol from stdin to server.\n"
" --pipe-timeout <n> In --pipe mode, abort with error if after sending all data.\n"
" --pipe-timeout <n> In --pipe mode, abort with error if after sending all data.\n"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment