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
14aa88c0
Commit
14aa88c0
authored
Apr 07, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Plain Diff
Sync
parents
589cc947
5c8323e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+15
-5
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
14aa88c0
...
...
@@ -82,15 +82,23 @@ type Tree = btree.LOBTree
type
Bucket
=
btree
.
LOBucket
type
Node
=
btree
.
LONode
type
Key
=
int64
type
Value
=
zodb
.
Oid
// XXX assumes key points to IPersistent
// ΔTail represents tail of revisional changes to BTrees.
//
// It semantically consists of
// It covers changes to keys from tracked subset of BTrees parts and
// semantically consists of
//
// [](rev↑, [](root, []key)) ; rev ∈ (tail, head]
// # k/v change history ; rev ∈ (tail, head]
// [](rev↑,
// [](root,
// {}(key, value)))
//
// and covers changes to tracked subsets of BTrees. A tree subset becomes
// tracked via Track(path) request.
// # set of k/v @tail for keys that are not changed in (tail, head].
// {} root ->
// {}(key, value)
//
// A tree nodes become tracked via Track(path) request.
//
// An example for tracked set is a set of visited BTree paths.
// There is no requirement that tracked set belongs to only one single BTree.
...
...
@@ -105,7 +113,9 @@ type Key = int64
type
ΔTail
struct
{
δBtail
[]
ΔRevEntry
// BTree changes; Covers keys ∈ tracket subset
δZtail
*
zodb
.
ΔTail
// raw ZODB changes; Kept to rebuild δBtail after new Track
// head zodb.Tid // δBtail currently has coverage till head], δZtail can have more
// {} root -> {}k/v @tail for keys that are not changed in (tail, head].
atTail
map
[
*
Tree
]
map
[
Key
]
Value
// XXX or ask client provide db on every call?
db
*
zodb
.
DB
// to open connections to load new/old tree|buckets
...
...
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