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
5f3946bd
Commit
5f3946bd
authored
Apr 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8456cefd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wcfs/δbtail.go
wcfs/δbtail.go
+6
-6
No files found.
wcfs/δbtail.go
View file @
5f3946bd
...
...
@@ -40,7 +40,7 @@ type Key = int64
type
Value
=
zodb
.
Oid
// XXX assumes key points to IPersistent
// XXX how to represent deletion? InvalidOid?
// ΔB
T
ail represents tail of revisional changes to BTrees.
// ΔB
t
ail represents tail of revisional changes to BTrees.
//
// It semantically consists of
//
...
...
@@ -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
// it was changes in δZ, is not guaranted to be present in δB.
//
// ΔB
T
ail provides the following operations:
// ΔB
t
ail provides the following operations:
//
// .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
// XXX incremental; not full coverage
// XXX see also zodb.ΔTail .
//
// ΔB
T
ail is not safe for concurrent access.
// ΔB
t
ail is not safe for concurrent access.
// XXX -> multiple readers / single writer?
type
ΔBtail
struct
{
// raw ZODB changes; Kept to rebuild δBtail/byRoot after new Track.
...
...
@@ -113,7 +113,7 @@ type ΔRoots struct {
// ΔTreeTail represent tail of revisional changes to one BTree.
//
// See ΔB
T
ail documentation for details.
// See ΔB
t
ail documentation for details.
//
// XXX -> ΔTtail
type
ΔTreeTail
struct
{
...
...
@@ -133,7 +133,7 @@ type ΔTree struct {
KV
map
[
Key
]
Value
}
// NewΔBtail creat
s new empty ΔBT
ail object.
// NewΔBtail creat
es new empty ΔBt
ail object.
//
// Initial tracked set is empty.
// Initial coverage is (at₀, at₀].
...
...
@@ -145,7 +145,7 @@ func NewΔBtail(at0 zodb.Tid) *ΔBtail {
}
}
//
XXX
//
newΔTtail creates new empty ΔTtail object.
func
newΔTtail
()
*
ΔTreeTail
{
return
&
ΔTreeTail
{
KVAtTail
:
make
(
map
[
Key
]
Value
),
...
...
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