Commit 96e67dba authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3a64a4ad
...@@ -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 -> CommitEvent? // XXX -> EventCommit?
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 {
......
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