Commit e535113c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7b0de48a
...@@ -44,7 +44,7 @@ import ( ...@@ -44,7 +44,7 @@ import (
// type myObjectState MyObject // type myObjectState MyObject
// //
// func (o *myObjectState) DropState() { ... } // func (o *myObjectState) DropState() { ... }
// func (o *myObjectState) PySetState(pystate interface{}) error { ... } // func (o *myObjectState) SetState(state *mem.Buf) error { ... }
// //
// func init() { // func init() {
// t := reflect.TypeOf // t := reflect.TypeOf
...@@ -192,7 +192,7 @@ func (obj *Persistent) PActivate(ctx context.Context) (err error) { ...@@ -192,7 +192,7 @@ func (obj *Persistent) PActivate(ctx context.Context) (err error) {
} }
} }
// XXX set state to load error? // XXX set state to load error? (to avoid panic on second activate after load error)
loading.err = err loading.err = err
obj.mu.Unlock() obj.mu.Unlock()
...@@ -242,7 +242,7 @@ func (obj *Persistent) PInvalidate() { ...@@ -242,7 +242,7 @@ func (obj *Persistent) PInvalidate() {
if obj.refcnt != 0 { if obj.refcnt != 0 {
// object is currently in use // object is currently in use
panic(obj.badf("invalidate: refcnt != 0")) // XXX panic(obj.badf("invalidate: refcnt != 0 (= %d)", obj.refcnt))
} }
obj.serial = InvalidTid obj.serial = InvalidTid
......
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