Commit 1f35db44 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bb4f6183
......@@ -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),
}
}
......
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