Commit 684b3220 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f9b2c1ee
...@@ -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.
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment