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
8110ab56
Commit
8110ab56
authored
Sep 09, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e2614eb3
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 @
8110ab56
...
...
@@ -217,7 +217,7 @@ func (tidx trackIndex) gc1(oid zodb.Oid) {
return
// already not there
}
if
t
.
nchild
!=
0
{
panicf
(
"gc %
v (nchild != 0)"
,
t
)
panicf
(
"gc %
s %v (nchild != 0)"
,
oid
,
t
)
}
delete
(
tidx
,
oid
)
...
...
@@ -263,11 +263,11 @@ func (tidx trackIndex) ApplyΔ(δ *δtrackIndex) {
}
}
gcq
:=
[]
zodb
.
Oid
{}
for
parent
,
δnc
:=
range
δnchild
{
t
:=
tidx
[
parent
]
for
oid
,
δnc
:=
range
δnchild
{
t
:=
tidx
[
oid
]
t
.
nchild
+=
δnc
if
t
.
nchild
==
0
{
gcq
=
append
(
gcq
,
t
.
parent
)
gcq
=
append
(
gcq
,
oid
)
}
}
for
_
,
oid
:=
range
gcq
{
...
...
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