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

.

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