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
d7830dbf
Commit
d7830dbf
authored
Jun 24, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7b0f8038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
wcfs/δbtail.go
wcfs/δbtail.go
+5
-3
No files found.
wcfs/δbtail.go
View file @
d7830dbf
...
...
@@ -176,8 +176,8 @@ type ΔBtail struct {
// tracked objects that are not yet taken into account in current δBtail
trackNew
SetOid
// tracked keys that are not in current version of the tree.
tkdel
SetKey
//
// tracked keys that are not in current version of the tree.
//
tkdel SetKey
// tracked nodes index: node -> parent + keys tracked under this node
...
...
@@ -239,7 +239,7 @@ func NewΔBtail(at0 zodb.Tid, db *zodb.DB) *ΔBtail {
byRoot
:
make
(
map
[
zodb
.
Oid
]
*
ΔTtail
),
// trackIdx: make(map[zodb.Oid]SetOid),
trackIdx
:
map
[
zodb
.
Oid
]
nodeTrack
{},
tkdel
:
SetKey
{},
//
tkdel: SetKey{},
db
:
db
,
}
}
...
...
@@ -331,6 +331,7 @@ func (δBtail *ΔBtail) Track(ctx context.Context, key Key, keyPresent bool, pat
δBtail
.
byRoot
[
root
]
=
newΔTtail
()
}
/*
if !keyPresent {
δBtail.tkdel.Add(key)
} else {
...
...
@@ -338,6 +339,7 @@ func (δBtail *ΔBtail) Track(ctx context.Context, key Key, keyPresent bool, pat
panicf("[%v] was previously requested to be tracked as ø", key)
}
}
*/
// XXX update diff XXX here? or as separate step?
// XXX update lastRevOf
...
...
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