Commit fde635b7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bd035335
// Code generated by gen-δtail I64 int64; DO NOT EDIT. // Code generated by gen-δtail I64 int64; DO NOT EDIT.
// (from lab.nexedi.com/kirr/neo/go/zodb @ v1.9-2243-g8708ccde) // (from lab.nexedi.com/kirr/neo/go/zodb @ v1.9-2332-ga6a767c9)
// Copyright (C) 2018-2019 Nexedi SA and Contributors. // Copyright (C) 2018-2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com> // Kirill Smelkov <kirr@nexedi.com>
...@@ -123,7 +123,7 @@ func (δtail *ΔTailI64) Tail() zodb.Tid { ...@@ -123,7 +123,7 @@ func (δtail *ΔTailI64) Tail() zodb.Tid {
// //
// Note: contrary to regular go slicing, low is exclusive while high is inclusive. // Note: contrary to regular go slicing, low is exclusive while high is inclusive.
func (δtail *ΔTailI64) SliceByRev(low, high zodb.Tid) /*readonly*/ []ΔRevEntry { func (δtail *ΔTailI64) SliceByRev(low, high zodb.Tid) /*readonly*/ []ΔRevEntry {
tail := δtail.Tail() tail := δtail.tail
head := δtail.head head := δtail.head
if !(tail <= low && low <= high && high <= head) { if !(tail <= low && low <= high && high <= head) {
panic(fmt.Sprintf("δtail.Slice: invalid query: (%s, %s]; (tail, head] = (%s, %s]", low, high, tail, head)) panic(fmt.Sprintf("δtail.Slice: invalid query: (%s, %s]; (tail, head] = (%s, %s]", low, high, tail, head))
...@@ -204,6 +204,7 @@ func (δtail *ΔTailI64) ForgetPast(revCut zodb.Tid) { ...@@ -204,6 +204,7 @@ func (δtail *ΔTailI64) ForgetPast(revCut zodb.Tid) {
δtail.tail = revCut δtail.tail = revCut
} }
// XXX -> RevAt ?
// LastRevOf tries to return what was the last revision that changed id as of at database state. // LastRevOf tries to return what was the last revision that changed id as of at database state.
// //
// Depending on current information in δtail it returns either exact result, or // Depending on current information in δtail it returns either exact result, or
......
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