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
3950de77
Commit
3950de77
authored
Aug 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e7e8600f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
wcfs/δbtail.go
wcfs/δbtail.go
+6
-1
No files found.
wcfs/δbtail.go
View file @
3950de77
...
@@ -252,8 +252,9 @@ type ΔTree struct {
...
@@ -252,8 +252,9 @@ type ΔTree struct {
func
NewΔBtail
(
at0
zodb
.
Tid
,
db
*
zodb
.
DB
)
*
ΔBtail
{
func
NewΔBtail
(
at0
zodb
.
Tid
,
db
*
zodb
.
DB
)
*
ΔBtail
{
return
&
ΔBtail
{
return
&
ΔBtail
{
δZtail
:
zodb
.
NewΔTail
(
at0
),
δZtail
:
zodb
.
NewΔTail
(
at0
),
byRoot
:
ma
ke
(
map
[
zodb
.
Oid
]
*
ΔTtail
)
,
byRoot
:
ma
p
[
zodb
.
Oid
]
*
ΔTtail
{}
,
trackIdx
:
map
[
zodb
.
Oid
]
nodeTrack
{},
trackIdx
:
map
[
zodb
.
Oid
]
nodeTrack
{},
holeIdx
:
treeSetKey
{
SetKey
{}},
db
:
db
,
db
:
db
,
}
}
}
}
...
@@ -333,11 +334,15 @@ func (δBtail *ΔBtail) Track(key Key, keyPresent bool, path []Node, flags Track
...
@@ -333,11 +334,15 @@ func (δBtail *ΔBtail) Track(key Key, keyPresent bool, path []Node, flags Track
// remember missing keys in track of leaf node (bucket or top-level ø tree)
// remember missing keys in track of leaf node (bucket or top-level ø tree)
if
!
keyPresent
{
if
!
keyPresent
{
δBtail
.
holeIdx
.
Add
(
key
)
track
.
holes
.
Add
(
key
)
track
.
holes
.
Add
(
key
)
}
else
{
}
else
{
if
track
.
holes
.
Has
(
key
)
{
if
track
.
holes
.
Has
(
key
)
{
panicf
(
"[%v] was previously requested to be tracked as ø"
,
key
)
panicf
(
"[%v] was previously requested to be tracked as ø"
,
key
)
}
}
if
δBtail
.
holeIdx
.
Has
(
key
)
{
panicf
(
"[%v] was previously requested to be tracked as ø"
,
key
)
}
}
}
...
...
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