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
1d5b12c5
Commit
1d5b12c5
authored
Jun 11, 2014
by
antirez
Browse files
Cluster test: rewrite config when resetting nodes.
parent
73fefd0b
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/cluster/tests/includes/init-tests.tcl
View file @
1d5b12c5
...
@@ -23,8 +23,9 @@ test "Cluster nodes hard reset" {
...
@@ -23,8 +23,9 @@ test "Cluster nodes hard reset" {
foreach_redis_id id
{
foreach_redis_id id
{
catch
{
R $id flushall
}
;
# May fail for readonly slaves.
catch
{
R $id flushall
}
;
# May fail for readonly slaves.
R $id cluster reset hard
R $id cluster reset hard
R $id config set cluster-node-timeout 3000
R $id cluster set-config-epoch
[
expr
{
$id
+1
}]
R $id cluster set-config-epoch
[
expr
{
$id
+1
}]
R $id config set cluster-node-timeout 3000
R $id config rewrite
}
}
}
}
...
...
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