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
1f35db44
Commit
1f35db44
authored
Apr 14, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bb4f6183
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+4
-3
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
1f35db44
...
...
@@ -83,9 +83,6 @@ type ΔTail struct {
// tracked objects that are not yet taken into in current δBtail
trackNew
map
[
zodb
.
Oid
]
struct
{}
// XXX SetOid
// index for LastRevOf queries
lastRevOf
map
[
zodb
.
Oid
]
map
[
Key
]
zodb
.
Tid
// {} root -> {} key -> last
}
// ΔRoots describes which BTrees were change in one revision.
...
...
@@ -103,6 +100,9 @@ type ΔTreeTail struct {
// {}k/v @tail for keys that are changed in (tail, head].
KVAtTail
map
[
Key
]
Value
// index for LastRevOf queries
lastRevOf
map
[
Key
]
zodb
.
Tid
// {} key -> last
}
// ΔTree describes changes to one BTree in one revision.
...
...
@@ -119,6 +119,7 @@ type ΔTree struct {
func
NewΔTail
(
at0
zodb
.
Tid
)
*
ΔTail
{
return
&
ΔTail
{
ΔZtail
:
zodb
.
NewΔTail
(
at0
),
byRoot
:
make
(
map
[
*
Tree
]
*
ΔTreeTail
),
trackIdx
:
make
(
map
[
zodb
.
Oid
]
SetTree
),
}
}
...
...
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