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
0c4a570c
Commit
0c4a570c
authored
Jun 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
08472be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wcfs/δbtail.go
wcfs/δbtail.go
+4
-1
No files found.
wcfs/δbtail.go
View file @
0c4a570c
...
...
@@ -137,7 +137,7 @@ type ΔBtail struct {
// nodeTrack represents tracking information about a node.
type
nodeTrack
struct
{
parent
zodb
.
Oid
// parent node | InvalidOid for root
trackedKeys
SetKey
// keys tracked under this node; nil for root
trackedKeys
SetKey
// keys tracked under this node; nil for root
XXX only !empty root
}
// ΔB represents a change in BTrees space.
...
...
@@ -517,6 +517,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
aChildren
[
child
.
POid
()]
=
child
// InvalidOid = embedded bucket
}
}
fmt
.
Printf
(
" aChildren: %s
\n
"
,
aChildren
)
// -> "might be changed" subset of tracked keys
δtqkeys
:=
SetKey
{}
...
...
@@ -527,6 +528,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
}
δtqkeys
.
Update
(
track
.
trackedKeys
)
}
fmt
.
Printf
(
" δtqkeys: %s
\n
"
,
δtqkeys
)
// b -> {bChildren} : coverage ∩ "might be changed" tracked keys
bChildren
:=
map
[
zodb
.
Oid
]
Node
{}
...
...
@@ -546,6 +548,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
}
}
}
fmt
.
Printf
(
" bChildren: %s
\n
"
,
bChildren
)
// allChildren = aChildren ∪ bChildren
allChildren
:=
SetOid
{}
...
...
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