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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
2ff47fda
Commit
2ff47fda
authored
Apr 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
192343fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+4
-5
wcfs/δftail.go
wcfs/δftail.go
+1
-0
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
2ff47fda
...
...
@@ -83,7 +83,7 @@ type ΔTail struct {
// XXX -> δZtail
ΔZtail
*
zodb
.
ΔTail
// raw ZODB changes; Kept to rebuild δBtail/byRoot after new Track
δroot
[]
ΔRoots
// which BTree were changed; Noted only by keys ∈ tracket subset
//
δroot []ΔRoots // which BTree were changed; Noted only by keys ∈ tracket subset
byRoot
map
[
*
Tree
]
*
ΔTreeTail
// root -> k/v change history; only for keys ∈ tracket subset
// XXX or ask client provide db on every call?
...
...
@@ -103,12 +103,14 @@ type Δ struct {
}
/*
// ΔRoots describes which BTrees were change in one revision.
// XXX kill?
type ΔRoots struct {
Rev zodb.Tid
Changev []*Tree // root XXX -> Oid? XXX -> SetTree?
}
*/
// ΔTreeTail represent tail of revisional changes to one BTree.
//
...
...
@@ -163,7 +165,6 @@ func (δb *ΔTail) Tail() zodb.Tid {
//
// XXX δBtail is rebuild to also include keys corresponding to added nodes.
//
// XXX path is at @at state.
// XXX objects in path must be with .PJar().At() == .head
// XXX path -> []oid ?
//
...
...
@@ -256,10 +257,8 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) Δ {
//
// if revExact=False - rev is upper estimate for the revision.
//
// XXX only tracked set?
//
// XXX at must ∈ (tail, head] XXX [tail ?
// XXX key must be tracked
-> yes
// XXX key must be tracked
func
(
btail
*
ΔTail
)
Get
(
root
*
Tree
,
key
Key
,
at
zodb
.
Tid
)
(
value
Value
,
ok
bool
,
rev
zodb
.
Tid
,
revExact
bool
)
{
// XXX key not tracked -> panic
// XXX at not ∈ (tail, head] -> panic
...
...
wcfs/δftail.go
View file @
2ff47fda
...
...
@@ -74,6 +74,7 @@ type ΔF struct {
// NewΔFtail creates new ΔFtail object.
//
// Initial tracked set is empty.
// Initial coverage of created ΔFtail is (at₀, at₀].
func
NewΔFtail
(
at0
zodb
.
Tid
)
*
ΔFtail
{
return
&
ΔFtail
{
...
...
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