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
1e92fde3
Commit
1e92fde3
authored
Jun 14, 2018
by
antirez
Browse files
Fix SCAN bug regression test, avoiding empty SREM call.
parent
ce17f76b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scan.tcl
View file @
1e92fde3
...
@@ -246,7 +246,7 @@ start_server {tags {"scan"}} {
...
@@ -246,7 +246,7 @@ start_server {tags {"scan"}} {
array set found
{}
array set found
{}
# Populate the set
# Populate the set
set numele
[
expr
{
10
0
+
[
randomInt 1000
]}]
set numele
[
expr
{
10
1
+
[
randomInt 1000
]}]
for
{
set j 0
}
{
$j
< $numele
}
{
incr j
}
{
for
{
set j 0
}
{
$j
< $numele
}
{
incr j
}
{
r sadd set $j
r sadd set $j
if
{
$j
>= 100
}
{
if
{
$j
>= 100
}
{
...
...
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