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
597329f1
Commit
597329f1
authored
Aug 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
29848a1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/δbtail.go
wcfs/δbtail.go
+4
-4
No files found.
wcfs/δbtail.go
View file @
597329f1
...
...
@@ -716,7 +716,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
Akdone
:=
SetKey
{}
// already processed keys in A
Bkdone
:=
SetKey
{}
// ----//---- in B
// phase 1: expand A top-
down driven by δZTC
// phase 1: expand A top-
>down driven by δZTC.
// by default a node contributes to δ-
// a node ac does not contribute to δ- and can be skipped, if:
// - ac is not tracked, or
...
...
@@ -738,7 +738,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
Akdone
.
Add
(
k
)
Bkqueue
.
Add
(
k
)
}
// XXX
ra.range -> Bqholes
// XXX
Bkqueue <- holes(ra.range)
ra
.
done
=
true
case
*
Tree
:
...
...
@@ -760,7 +760,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
if
err
!=
nil
{
return
nil
,
err
}
if
ok
{
// ac can be skipped
// XXX
ac.range \ bc.range -> Bqholes
// XXX
Bkqueue <- holes(ac.range \ bc.range)
continue
}
}
...
...
@@ -824,7 +824,6 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
if
!
ok
{
// !ok means ø tree
δA
,
err
:=
diffB
(
ctx
,
abucket
,
nil
);
/*X*/
if
err
!=
nil
{
return
nil
,
err
}
}
// XXX also process holes?
// δ <- δA
err
=
δMerge
(
δ
,
δA
);
/*X*/
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -836,6 +835,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
Bkqueue
.
Add
(
k_
)
}
}
// XXX Bkqueue <- holes(a.range)
a
.
done
=
true
}
...
...
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