Commit 5ebd8119 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 911d74d4
...@@ -142,7 +142,7 @@ type ZBlk0 struct { ...@@ -142,7 +142,7 @@ type ZBlk0 struct {
zblkInΔFtail zblkInΔFtail
zodb.Persistent zodb.Persistent
// XXX py source uses bytes(buf) but on python2 it still results in str // NOTE py source uses bytes(buf) but on python2 it still results in str
blkdata string blkdata string
} }
...@@ -162,15 +162,14 @@ func (zb *zBlk0State) PySetState(pystate interface{}) error { ...@@ -162,15 +162,14 @@ func (zb *zBlk0State) PySetState(pystate interface{}) error {
return fmt.Errorf("expect str; got %s", typeOf(pystate)) return fmt.Errorf("expect str; got %s", typeOf(pystate))
} }
//log.Printf("ZBlk0.PySetState #%d", len(blkdata))
zb.blkdata = blkdata zb.blkdata = blkdata
return nil return nil
} }
func (zb *ZBlk0) loadBlkData(ctx context.Context) ([]byte, zodb.Tid, error) { func (zb *ZBlk0) loadBlkData(ctx context.Context) (_ []byte, _ zodb.Tid, err error) {
// XXX err ctx defer xerr.Contextf(&err, "ZBlk0(%s): loadBlkData", zb.POid())
err := zb.PActivate(ctx) err = zb.PActivate(ctx)
if err != nil { if err != nil {
return nil, 0, err return nil, 0, err
} }
...@@ -239,10 +238,10 @@ func (zb *zBlk1State) PySetState(pystate interface{}) error { ...@@ -239,10 +238,10 @@ func (zb *zBlk1State) PySetState(pystate interface{}) error {
return nil return nil
} }
func (zb *ZBlk1) loadBlkData(ctx context.Context) ([]byte, zodb.Tid, error) { func (zb *ZBlk1) loadBlkData(ctx context.Context) (_ []byte, _ zodb.Tid, err error) {
// XXX errctx defer xerr.Contextf(&err, "ZBlk1(%s): loadBlkData", zb.POid())
err := zb.PActivate(ctx) err = zb.PActivate(ctx)
if err != nil { if err != nil {
return nil, 0, err return nil, 0, err
} }
......
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