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
684b3220
Commit
684b3220
authored
Aug 17, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f9b2c1ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+10
-10
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+1
-1
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
684b3220
...
@@ -60,24 +60,24 @@ const debugΔBtail = false
...
@@ -60,24 +60,24 @@ const debugΔBtail = false
//
//
// .Update(δZ) -> δB - update BTree δ tail given raw ZODB changes
// .Update(δZ) -> δB - update BTree δ tail given raw ZODB changes
// .ForgetPast(revCut) - forget changes past revCut
// .ForgetPast(revCut) - forget changes past revCut
// .SliceByRev(lo, hi) -> []δB -
XXX
// .SliceByRev(lo, hi) -> []δB -
query for all trees changes with rev ∈ (lo, hi]
// .SliceByRootRev(root, lo, hi) -> []δT -
XXX
// .SliceByRootRev(root, lo, hi) -> []δT -
query for changes of a tree with rev ∈ (lo, hi]
//
//
// XXX also:
// XXX also:
// .Get(root, key, at) - get root[key] @at assuming root[key] ∈ tracked
// .Get(root, key, at) - get root[key] @at assuming root[key] ∈ tracked
//
//
// An example for tracked set is a set of visited BTree paths.
// where δT represents a change to one tree
// There is no requirement that tracked set belongs to only one single BTree.
//
//
// XXX δB can convert δZ to btree changes, but only at least for δZ's objects
// δT:
// that ∈ BTree subgraphs that were explicitly requested to be tracked by δB.
// .rev↑
// {}(key, δvalue)
//
//
// XXX incremental; not full coverage
// 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.
//
//
// ΔBtail is not safe for concurrent access. XXX rework
// XXX concurrent use
// XXX -> multiple readers / single writer?
//
//
// See also zodb.ΔTail
// See also zodb.ΔTail
and zdata.ΔFtail
type
ΔBtail
struct
{
type
ΔBtail
struct
{
// raw ZODB changes; Kept to rebuild .vδTbyRoot after new Track.
// raw ZODB changes; Kept to rebuild .vδTbyRoot after new Track.
// includes all changed objects, not only tracked ones.
// includes all changed objects, not only tracked ones.
...
...
wcfs/internal/zdata/δftail.go
View file @
684b3220
...
@@ -78,7 +78,7 @@ type setOid = set.Oid
...
@@ -78,7 +78,7 @@ type setOid = set.Oid
//
//
// XXX concurrent use
// XXX concurrent use
//
//
// See also zodb.ΔTail
// See also zodb.ΔTail
and xbtree.ΔBtail
type
ΔFtail
struct
{
type
ΔFtail
struct
{
// ΔFtail merges ΔBtail with history of ZBlk
// ΔFtail merges ΔBtail with history of ZBlk
δBtail
*
xbtree
.
ΔBtail
δBtail
*
xbtree
.
ΔBtail
...
...
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