Commit 5f3946bd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8456cefd
...@@ -40,7 +40,7 @@ type Key = int64 ...@@ -40,7 +40,7 @@ type Key = int64
type Value = zodb.Oid // XXX assumes key points to IPersistent type Value = zodb.Oid // XXX assumes key points to IPersistent
// XXX how to represent deletion? InvalidOid? // XXX how to represent deletion? InvalidOid?
// ΔBTail represents tail of revisional changes to BTrees. // ΔBtail represents tail of revisional changes to BTrees.
// //
// It semantically consists of // It semantically consists of
// //
...@@ -62,7 +62,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent ...@@ -62,7 +62,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent
// In particular a key that was not explicitly requested to be tracked, even if // In particular a key that was not explicitly requested to be tracked, even if
// it was changes in δZ, is not guaranted to be present in δB. // it was changes in δZ, is not guaranted to be present in δB.
// //
// ΔBTail provides the following operations: // ΔBtail provides the following operations:
// //
// .Track(path) - start tracking tree nodes and keys; root=path[0], keys=path[-1].keys // .Track(path) - start tracking tree nodes and keys; root=path[0], keys=path[-1].keys
// //
...@@ -79,7 +79,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent ...@@ -79,7 +79,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent
// XXX incremental; not full coverage // XXX incremental; not full coverage
// XXX see also zodb.ΔTail . // XXX see also zodb.ΔTail .
// //
// ΔBTail is not safe for concurrent access. // ΔBtail is not safe for concurrent access.
// XXX -> multiple readers / single writer? // XXX -> multiple readers / single writer?
type ΔBtail struct { type ΔBtail struct {
// raw ZODB changes; Kept to rebuild δBtail/byRoot after new Track. // raw ZODB changes; Kept to rebuild δBtail/byRoot after new Track.
...@@ -113,7 +113,7 @@ type ΔRoots struct { ...@@ -113,7 +113,7 @@ type ΔRoots struct {
// ΔTreeTail represent tail of revisional changes to one BTree. // ΔTreeTail represent tail of revisional changes to one BTree.
// //
// See ΔBTail documentation for details. // See ΔBtail documentation for details.
// //
// XXX -> ΔTtail // XXX -> ΔTtail
type ΔTreeTail struct { type ΔTreeTail struct {
...@@ -133,7 +133,7 @@ type ΔTree struct { ...@@ -133,7 +133,7 @@ type ΔTree struct {
KV map[Key]Value KV map[Key]Value
} }
// NewΔBtail creats new empty ΔBTail object. // NewΔBtail creates new empty ΔBtail object.
// //
// Initial tracked set is empty. // Initial tracked set is empty.
// Initial coverage is (at₀, at₀]. // Initial coverage is (at₀, at₀].
...@@ -145,7 +145,7 @@ func NewΔBtail(at0 zodb.Tid) *ΔBtail { ...@@ -145,7 +145,7 @@ func NewΔBtail(at0 zodb.Tid) *ΔBtail {
} }
} }
// XXX // newΔTtail creates new empty ΔTtail object.
func newΔTtail() *ΔTreeTail { func newΔTtail() *ΔTreeTail {
return &ΔTreeTail{ return &ΔTreeTail{
KVAtTail: make(map[Key]Value), KVAtTail: make(map[Key]Value),
......
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