Commit 296155b2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 08f0e905
......@@ -595,14 +595,19 @@ func (root *Root) zδhandle1(zevent zodb.CommitEvent) {
toinvalidate := map[*BigFile]SetI64{} // {} file -> set(#blk)
fmt.Printf("\n\n\n")
// zevent = (tid↑, []oid)
for _, oid := range zevent.Changev {
// XXX zhead.Cache() lock/unlock + comment it is not really needed
obj := zhead.Cache().Get(oid)
if obj == nil {
fmt.Printf("%s: not in cache\n", oid)
continue // nothing to do - see invariant
}
fmt.Printf("%s: in cache (%s)\n", oid, typeOf(obj))
switch obj := obj.(type) {
default:
continue // object not related to any bigfile
......
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