Commit b0c79b6b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent eaa44e39
......@@ -126,6 +126,12 @@ func (zb *zBlk1State) PySetState(pystate interface{}) error {
func (zb *ZBlk1) LoadBlkData(ctx context.Context) ([]byte, error) {
// XXX errctx
err := zb.PActivate(ctx)
if err != nil {
return nil, err
}
defer zb.PDeactivate()
// // empty .chunktab -> ø
// ev := zb.chunktab.Entryv()
// if len(ev) == 0 {
......@@ -218,7 +224,7 @@ func (zb *ZBlk1) LoadBlkData(ctx context.Context) ([]byte, error) {
return loadBTree(zb.chunktab)
})
err := wg.Wait()
err = wg.Wait()
// deactivate all loaded ZData objects in chunktab
for _, zd := range chunktab {
......@@ -226,7 +232,7 @@ func (zb *ZBlk1) LoadBlkData(ctx context.Context) ([]byte, error) {
}
if err != nil {
// XXX
panic(err) // XXX
}
panic("TODO")
......
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