Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
d2bb8d78
Commit
d2bb8d78
authored
May 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X vδT should not keep empty entries
parent
e418f9c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+9
-3
No files found.
wcfs/δbtail_test.go
View file @
d2bb8d78
...
@@ -1015,14 +1015,20 @@ func xverifyΔBTail_rebuild_TR(t *testing.T, db *zodb.DB, δbtail *ΔBtail, tj *
...
@@ -1015,14 +1015,20 @@ func xverifyΔBTail_rebuild_TR(t *testing.T, db *zodb.DB, δbtail *ΔBtail, tj *
// verify SliceByRootRev XXX -> verify δbtail.byRoot[treeRoot] directly
// verify SliceByRootRev XXX -> verify δbtail.byRoot[treeRoot] directly
// XXX +KVAtTail, +lastRevOf
// XXX +KVAtTail, +lastRevOf
l
:=
len
(
vδTok
)
l
:=
len
(
vδTok
)
vatOK
:=
make
([]
zodb
.
Tid
,
l
)
vatOK
:=
[]
zodb
.
Tid
{}
vδTok_
:=
[]
map
[
Key
]
Δstring
{}
t0
:=
tj
t0
:=
tj
for
i
:=
0
;
i
<
l
;
i
++
{
for
i
:=
0
;
i
<
l
;
i
++
{
vatOK
[
l
-
i
-
1
]
=
t0
.
at
// empty vδTok entries means they should be absent in vδT
if
δTok
:=
vδTok
[
l
-
i
-
1
];
len
(
δTok
)
!=
0
{
vatOK
=
append
([]
zodb
.
Tid
{
t0
.
at
},
vatOK
...
)
vδTok_
=
append
([]
map
[
Key
]
Δstring
{
δTok
},
vδTok_
...
)
}
t0
=
t0
.
prev
t0
=
t0
.
prev
}
}
vδTok
=
vδTok_
lo
:=
t0
.
at
lo
:=
t0
.
at
hi
:=
vatOK
[
l
-
1
]
hi
:=
tj
.
at
vδToid
:=
δbtail
.
SliceByRootRev
(
treeRoot
,
lo
,
hi
)
vδToid
:=
δbtail
.
SliceByRootRev
(
treeRoot
,
lo
,
hi
)
l
=
len
(
vδToid
)
l
=
len
(
vδToid
)
...
...
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