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
29848a1f
Commit
29848a1f
authored
Aug 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
94a14ccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
wcfs/δbtail.go
wcfs/δbtail.go
+7
-3
No files found.
wcfs/δbtail.go
View file @
29848a1f
...
@@ -803,7 +803,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
...
@@ -803,7 +803,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
// Akqueue <- δB
// Akqueue <- δB
for
k_
:=
range
δB
{
for
k_
:=
range
δB
{
Bkdone
.
Add
(
k_
)
Bkdone
.
Add
(
k_
)
if
!
Akdone
(
k_
)
{
if
!
Akdone
.
Has
(
k_
)
{
Akqueue
.
Add
(
k_
)
Akqueue
.
Add
(
k_
)
}
}
}
}
...
@@ -852,6 +852,10 @@ func __qqq__diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zo
...
@@ -852,6 +852,10 @@ func __qqq__diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zo
// initial phase: expand changed nodes in a till buckets;
// initial phase: expand changed nodes in a till buckets;
// XXX changed buckets -> δ-
// XXX changed buckets -> δ-
var
atop
*
nodeInRange
=
nil
// XXX stub
av
:=
rangeSplit
{
nil
}
// XXX stub
bv
:=
rangeSplit
{
nil
}
// XXX stub
Aqueue
:=
[]
*
nodeInRange
{
atop
}
// stack: "to process" nodes on A
Aqueue
:=
[]
*
nodeInRange
{
atop
}
// stack: "to process" nodes on A
Bqueue
:=
[]
*
nodeInRange
{}
// stack: "to process" nodes on B
Bqueue
:=
[]
*
nodeInRange
{}
// stack: "to process" nodes on B
...
@@ -1314,7 +1318,7 @@ func __diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oi
...
@@ -1314,7 +1318,7 @@ func __diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oi
Aqueue
=
SetKey
{}
Aqueue
=
SetKey
{}
for
k
:=
range
Bqueue
{
for
k
:=
range
Bqueue
{
tracef
(
" B [%v]
\n
"
,
k
)
tracef
(
" B [%v]
\n
"
,
k
)
bnode
,
ok
,
err
:=
bv
.
GetToLeaf
(
ctx
,
k
)
bnode
,
ok
,
err
:=
bv
.
GetToLeaf
_
(
ctx
,
k
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
@@ -1394,7 +1398,7 @@ func __diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oi
...
@@ -1394,7 +1398,7 @@ func __diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oi
Bqueue
=
SetKey
{}
Bqueue
=
SetKey
{}
for
k
:=
range
Aqueue
{
for
k
:=
range
Aqueue
{
tracef
(
" A [%v]
\n
"
,
k
)
tracef
(
" A [%v]
\n
"
,
k
)
anode
,
ok
,
err
:=
av
.
GetToLeaf
(
ctx
,
k
)
anode
,
ok
,
err
:=
av
.
GetToLeaf
_
(
ctx
,
k
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
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