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
ba35b1e2
Commit
ba35b1e2
authored
Jun 11, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f2b44b94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
wcfs/internal/xbtree/treediff.go
wcfs/internal/xbtree/treediff.go
+19
-10
No files found.
wcfs/internal/xbtree/treediff.go
View file @
ba35b1e2
...
...
@@ -674,7 +674,9 @@ ABcov:
δtrack
.
Add
.
AddPath
(
bpath
)
if
nc
:=
at
.
nchild
;
nc
!=
0
{
δtrack
.
δnchildNonLeafs
[
acOid
]
=
nc
}
// XXX debugDiff δtrack [) ...
}
else
{
// adjust δtkeycov only if it was leaf bucket
ar
:=
KeyRange
{
ac
.
lo
,
ac
.
hi_
}
bc
:=
Bv
.
Get
(
ac
.
lo
)
br
:=
KeyRange
{
bc
.
lo
,
bc
.
hi_
}
...
...
@@ -683,6 +685,7 @@ ABcov:
debugfDiff
(
" δtrack - %s %v KKK
\n
"
,
ar
,
apath
)
debugfDiff
(
" δtrack + %s %v KKK
\n
"
,
br
,
bpath
)
}
}
continue
}
...
...
@@ -776,11 +779,17 @@ ABcov:
// δ <- δA
err
=
δMerge
(
δ
,
δA
);
/*X*/
if
err
!=
nil
{
return
nil
,
nil
,
nil
,
err
}
δtrack
.
Del
.
AddPath
(
a
.
Path
())
// NOTE *no* δtkeycovADel change here - A keys reached in phase 2 were not originally tracked.
// NOTE adjust δtkeycovADel only if a was originally tracked
ar
:=
KeyRange
{
a
.
lo
,
a
.
hi_
}
_
,
tracked
:=
trackSet
[
a
.
node
.
POid
()]
if
tracked
{
δtkeycovADel
.
AddRange
(
ar
)
debugfDiff
(
" δtrack - %s %v
\n
"
,
ar
,
a
.
Path
())
}
else
{
debugfDiff
(
" δtrack - [) %v
\n
"
,
a
.
Path
())
}
// Bkqueue <- a.range
ar
:=
KeyRange
{
a
.
lo
,
a
.
hi_
}
Akdone
.
AddRange
(
ar
)
Bktodo
(
ar
)
...
...
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