Commit 3baa5b34 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4ec86803
......@@ -20,7 +20,6 @@
package main
// ZBlk* + ZBigFile loading
// module: "wendelin.bigfile.file_zodb"
//
// ZBigFile
......@@ -44,13 +43,13 @@ import (
"sync"
"syscall"
"github.com/johncgriffin/overflow"
pickle "github.com/kisielk/og-rek"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/go123/xsync"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/btree"
pickle "github.com/kisielk/og-rek"
"github.com/johncgriffin/overflow"
"lab.nexedi.com/nexedi/wendelin.core/wcfs/internal/pycompat"
)
......@@ -308,7 +307,7 @@ func (zb *ZBlk1) loadBlkData(ctx context.Context) (_ []byte, _ zodb.Tid, err err
// glue all chunks from chunktab
offv := make([]int32, 0, len(chunktab)) // ↑
for off := range(chunktab) {
for off := range chunktab {
offv = append(offv, off)
}
sort.Slice(offv, func(i, j int) bool {
......@@ -362,7 +361,6 @@ type ZBigFile struct {
type zBigFileState ZBigFile // hide state methods from public API
// DropState implements zodb.Ghostable.
func (bf *zBigFileState) DropState() {
bf.blksize = 0
......
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