Commit 864af0b8 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 455a5442
// Code generated by gen-δtail I64 int64; DO NOT EDIT.
// (from lab.nexedi.com/kirr/neo/go/zodb @ v1.9-2136-g1742e47b)
// (from lab.nexedi.com/kirr/neo/go/zodb @ v1.9-144-g042a253a)
// Copyright (C) 2018-2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
......@@ -64,15 +64,13 @@ import (
type ΔTailI64 struct {
head zodb.Tid
tail zodb.Tid
tailv []ΔRevEntry // XXX -> revv ?
tailv []ΔRevEntry
lastRevOf map[int64]zodb.Tid // index for LastRevOf queries
// XXX -> lastRevOf = {} oid -> []rev↑ if linear scan in LastRevOf starts to eat cpu
}
// ΔRevEntry represents information of what have been changed in one revision.
//
// XXX -> ΔRevEntry?
type ΔRevEntry struct {
Rev zodb.Tid
Changev []int64
......@@ -101,7 +99,7 @@ func (δtail *ΔTailI64) Head() zodb.Tid {
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.
//
// Tail is ↑= on Forget, even if δtail becomes empty.
func (δtail *ΔTailI64) Tail() zodb.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