Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
96e67dba
Commit
96e67dba
authored
Mar 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3a64a4ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
go/zodb/δtail.go
go/zodb/δtail.go
+3
-5
No files found.
go/zodb/δtail.go
View file @
96e67dba
...
@@ -59,7 +59,7 @@ import (
...
@@ -59,7 +59,7 @@ import (
type
ΔTail
struct
{
type
ΔTail
struct
{
head
Tid
head
Tid
tail
Tid
tail
Tid
tailv
[]
ΔRevEntry
// XXX -> revv ? δv? δvec? changev ?
tailv
[]
ΔRevEntry
lastRevOf
map
[
Oid
]
Tid
// index for LastRevOf queries
lastRevOf
map
[
Oid
]
Tid
// index for LastRevOf queries
// XXX -> lastRevOf = {} oid -> []rev↑ if linear scan in LastRevOf starts to eat cpu
// XXX -> lastRevOf = {} oid -> []rev↑ if linear scan in LastRevOf starts to eat cpu
...
@@ -67,7 +67,7 @@ type ΔTail struct {
...
@@ -67,7 +67,7 @@ type ΔTail struct {
// ΔRevEntry represents information of what have been changed in one revision.
// ΔRevEntry represents information of what have been changed in one revision.
//
//
// XXX ->
CommitEven
t?
// XXX ->
EventCommi
t?
type
ΔRevEntry
struct
{
type
ΔRevEntry
struct
{
Rev
Tid
Rev
Tid
Changev
[]
Oid
Changev
[]
Oid
...
@@ -96,9 +96,7 @@ func (δtail *ΔTail) Head() Tid {
...
@@ -96,9 +96,7 @@ func (δtail *ΔTail) Head() Tid {
return
δtail
.
head
return
δtail
.
head
}
}
// Tail returns oldest database state for which δtail has history coverage.
// Tail returns lower-bound of database state for which δtail has history coverage.
//
// XXX not inclusive?
//
//
// Tail is ↑= on Forget, even if δtail becomes empty.
// Tail is ↑= on Forget, even if δtail becomes empty.
func
(
δtail
*
ΔTail
)
Tail
()
Tid
{
func
(
δtail
*
ΔTail
)
Tail
()
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