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
f9e37bd9
Commit
f9e37bd9
authored
Jun 16, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
dbb3a283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+2
-17
No files found.
wcfs/δbtail_test.go
View file @
f9e37bd9
...
...
@@ -20,7 +20,7 @@
package
main
// XXX doc (2 ways of testing: explicit + allstructs), treegen py helper
//
// Adjacency matrix
//
// A, B - topologies ex T/B1 T2/B1-B3
...
...
@@ -392,8 +392,7 @@ func xwalkDFS(ctx context.Context, lo, hi Key, ztree *Tree, bvisit func(*RBucket
}
/*
/* XXX kill
err = ztree.PActivate(ctx); X(err)
defer ztree.PDeactivate()
...
...
@@ -464,13 +463,6 @@ func XGetKV(db *zodb.DB, at zodb.Tid, kvOid map[Key]Value) map[Key]string {
return
kv
}
/*
// XGetBucket retrurns Bucket corresponding to root[k].
func XGetBucket(db *zodb.DB, at zodb.Tid, root zodb.Oid) ... {
// XXX kill -> amend XGetTree
}
*/
// xverifyΔBTail verifies how ΔBTail handles ZODB update for a tree with changes in between at1->at2.
//
...
...
@@ -502,12 +494,6 @@ func xverifyΔBTail(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, a
// maxkey among kv1+kv2
// it must be present in δB if maxkey tracking is requested.
maxKey
:=
maxk1
;
if
maxk2
>
maxk1
{
maxKey
=
maxk2
}
/*
maxKey := -kInf
if l := len(allKeyv); l > 0 {
maxKey = allKeyv[l-1] // FIXME always returns kInf -> rework to be real maxkey
}
*/
// {} k -> adjacent keys. if k is tracked -> changes to adjacents must be in δT.
kadj
:=
map
[
Key
]
SetKey
{}
...
...
@@ -539,7 +525,6 @@ func xverifyΔBTail(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, a
panic
(
fmt
.
Sprintf
(
"BUG: %s: computed kadj is wrong:
\n
kadjOK: %v
\n
kadj : %v
\n
"
,
subj
,
kadjOK
,
kadj
))
}
for
kidx
:=
range
IntSets
(
len
(
allKeyv
))
{
keys
:=
SetKey
{}
for
_
,
idx
:=
range
kidx
{
...
...
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