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
e1a042ce
Commit
e1a042ce
authored
Jun 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
be655e7f
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 @
e1a042ce
...
@@ -89,7 +89,7 @@ type ΔBtail struct {
...
@@ -89,7 +89,7 @@ type ΔBtail struct {
δZtail
*
zodb
.
ΔTail
δZtail
*
zodb
.
ΔTail
δRtail
[]
ΔRoots
// which BTree were changed; Noted only by keys ∈ tracket subset
δRtail
[]
ΔRoots
// which BTree were changed; Noted only by keys ∈ tracket subset
byRoot
map
[
*
Tree
]
*
ΔT
reeT
ail
// root -> k/v change history; only for keys ∈ tracket subset
byRoot
map
[
*
Tree
]
*
ΔT
t
ail
// root -> k/v change history; only for keys ∈ tracket subset
// XXX or ask client to provide db on every call?
// XXX or ask client to provide db on every call?
db
*
zodb
.
DB
// to open connections to load new/old tree|buckets
db
*
zodb
.
DB
// to open connections to load new/old tree|buckets
...
@@ -113,12 +113,12 @@ type ΔRoots struct {
...
@@ -113,12 +113,12 @@ type ΔRoots struct {
Roots
[]
*
Tree
// root XXX -> Oid? XXX -> SetTree?
Roots
[]
*
Tree
// root XXX -> Oid? XXX -> SetTree?
}
}
// ΔT
reeT
ail represent tail of revisional changes to one BTree.
// ΔT
t
ail represent tail of revisional changes to one BTree.
//
//
// See ΔBtail documentation for details.
// See ΔBtail documentation for details.
//
//
// XXX -> ΔTtail
// XXX -> ΔTtail
type
ΔT
reeT
ail
struct
{
type
ΔT
t
ail
struct
{
vδT
[]
ΔTree
// changes to tree keys; rev↑. covers keys ∈ tracket subset
vδT
[]
ΔTree
// changes to tree keys; rev↑. covers keys ∈ tracket subset
// {}k/v @tail for keys that are changed in (tail, head].
// {}k/v @tail for keys that are changed in (tail, head].
...
@@ -142,14 +142,14 @@ type ΔTree struct {
...
@@ -142,14 +142,14 @@ type ΔTree struct {
func
NewΔBtail
(
at0
zodb
.
Tid
)
*
ΔBtail
{
func
NewΔBtail
(
at0
zodb
.
Tid
)
*
ΔBtail
{
return
&
ΔBtail
{
return
&
ΔBtail
{
δZtail
:
zodb
.
NewΔTail
(
at0
),
δZtail
:
zodb
.
NewΔTail
(
at0
),
byRoot
:
make
(
map
[
*
Tree
]
*
ΔT
reeT
ail
),
byRoot
:
make
(
map
[
*
Tree
]
*
ΔT
t
ail
),
trackIdx
:
make
(
map
[
zodb
.
Oid
]
SetTree
),
trackIdx
:
make
(
map
[
zodb
.
Oid
]
SetTree
),
}
}
}
}
// newΔTtail creates new empty ΔTtail object.
// newΔTtail creates new empty ΔTtail object.
func
newΔTtail
()
*
ΔT
reeT
ail
{
func
newΔTtail
()
*
ΔT
t
ail
{
return
&
ΔT
reeT
ail
{
return
&
ΔT
t
ail
{
KVAtTail
:
make
(
map
[
Key
]
Value
),
KVAtTail
:
make
(
map
[
Key
]
Value
),
lastRevOf
:
make
(
map
[
Key
]
zodb
.
Tid
),
lastRevOf
:
make
(
map
[
Key
]
zodb
.
Tid
),
}
}
...
...
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