Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
f91cd86b
Commit
f91cd86b
authored
9 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
Move iterator stability test to wal_off suite
parent
cec796cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/big/tree_pk.result
+0
-61
0 additions, 61 deletions
test/big/tree_pk.result
test/big/tree_pk.test.lua
+0
-40
0 additions, 40 deletions
test/big/tree_pk.test.lua
with
0 additions
and
101 deletions
test/big/tree_pk.result
+
0
−
61
View file @
f91cd86b
...
...
@@ -553,64 +553,3 @@ s0:drop()
s0 = nil
---
...
-- test for expirationd. iterator must continue iterating after space insert/delete
s0 = box.schema.space.create('tweedledum')
---
...
i0 = s0:create_index('primary', { type = 'tree', parts = {1, 'num'}, unique = true })
---
...
s0:insert{20000}
---
- [20000]
...
--# setopt delimiter ';'
for i = 1, 10000 do
a = math.floor(math.random() * 10000)
if #s0:select{a} == 0 then
s0:insert{a}
end
end;
---
...
hit_end = false;
---
...
gen, param, state = i0:pairs({}, {iterator = box.index.ALL});
---
...
for i = 1, 10000 do
for j = 1, 10 do
state, tuple = gen(param, state)
if (tuple) then
if (tuple[1] == 20000) then
hit_end = true
end
if (math.random() > 0.9) then
s0:delete{tuple[1]}
end
else
gen, param, state = i0:pairs({}, {iterator = box.index.ALL})
end
end
for j = 1, 5 do
a = math.floor(math.random() * 10000)
if #s0:select{a} == 0 then
s0:insert{a}
end
end
if hit_end then break end
end;
---
...
hit_end;
---
- true
...
--# setopt delimiter ''
s0:drop()
---
...
s0 = nil
---
...
This diff is collapsed.
Click to expand it.
test/big/tree_pk.test.lua
+
0
−
40
View file @
f91cd86b
...
...
@@ -200,43 +200,3 @@ box.sort(s0.index['i2']:select(0))
s0
:
drop
()
s0
=
nil
-- test for expirationd. iterator must continue iterating after space insert/delete
s0
=
box
.
schema
.
space
.
create
(
'tweedledum'
)
i0
=
s0
:
create_index
(
'primary'
,
{
type
=
'tree'
,
parts
=
{
1
,
'num'
},
unique
=
true
})
s0
:
insert
{
20000
}
--# setopt delimiter ';'
for
i
=
1
,
10000
do
a
=
math.floor
(
math.random
()
*
10000
)
if
#
s0
:
select
{
a
}
==
0
then
s0
:
insert
{
a
}
end
end
;
hit_end
=
false
;
gen
,
param
,
state
=
i0
:
pairs
({},
{
iterator
=
box
.
index
.
ALL
});
for
i
=
1
,
10000
do
for
j
=
1
,
10
do
state
,
tuple
=
gen
(
param
,
state
)
if
(
tuple
)
then
if
(
tuple
[
1
]
==
20000
)
then
hit_end
=
true
end
if
(
math.random
()
>
0
.
9
)
then
s0
:
delete
{
tuple
[
1
]}
end
else
gen
,
param
,
state
=
i0
:
pairs
({},
{
iterator
=
box
.
index
.
ALL
})
end
end
for
j
=
1
,
5
do
a
=
math.floor
(
math.random
()
*
10000
)
if
#
s0
:
select
{
a
}
==
0
then
s0
:
insert
{
a
}
end
end
if
hit_end
then
break
end
end
;
hit_end
;
--# setopt delimiter ''
s0
:
drop
()
s0
=
nil
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment