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
d3e4212a
Commit
d3e4212a
authored
Aug 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ac4ff8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
wcfs/δbtail.go
wcfs/δbtail.go
+8
-4
No files found.
wcfs/δbtail.go
View file @
d3e4212a
...
...
@@ -818,19 +818,23 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
// ( this does not give exact answer but should be a reasonable heuristic;
// the diff is the same if heuristic does not work and we
// look into and load more nodes to compute δ )
_
,
ok
:=
BtrackIdx
[
acOid
]
if
!
ok
{
_
,
found
:=
BtrackIdx
[
acOid
]
if
!
found
{
for
{
blo
:=
Bv
.
Get
(
ac
.
lo
)
bhi_
:=
Bv
.
Get
(
ac
.
hi_
)
if
blo
!=
bhi_
{
break
}
_
,
ok
:=
blo
.
node
.
(
*
Tree
)
if
!
ok
{
break
// bucket
}
err
=
blo
.
node
.
PActivate
(
ctx
);
/*X*/
if
err
!=
nil
{
return
nil
,
err
}
defer
blo
.
node
.
PDeactivate
()
// XXX check for empty tree?
bchildren
:=
Bv
.
Expand
(
blo
)
found
:=
false
for
_
,
bc
:=
range
bchildren
{
bcOid
:=
bc
.
node
.
POid
()
BtrackIdx
[
bcOid
]
=
nodeTrack
{
parent
:
blo
.
node
.
POid
()}
...
...
@@ -843,7 +847,7 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
}
}
}
if
ok
{
if
found
{
// ac can be skipped
// XXX Bkqueue <- holes(ac.range \ bc.range)
continue
...
...
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