Commit b53e278e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3be18ddb
...@@ -1064,7 +1064,7 @@ func (zi *zIter) NextData() (*zodb.StorageRecordInformation, error) { ...@@ -1064,7 +1064,7 @@ func (zi *zIter) NextData() (*zodb.StorageRecordInformation, error) {
// - need to use separate dh because of this // - need to use separate dh because of this
zi.dhLoading = zi.iter.Datah zi.dhLoading = zi.iter.Datah
zi.sri.Data = zi.dataBuf zi.sri.Data = zi.dataBuf
err = zi.dhLoading.LoadData(zi.iter.fsSeq, &zi.sri.Data) err = zi.dhLoading.LoadData(zi.iter.R, &zi.sri.Data)
if err != nil { if err != nil {
return nil, err // XXX recheck return nil, err // XXX recheck
} }
...@@ -1110,7 +1110,7 @@ func (fs *FileStorage) Iterate(tidMin, tidMax zodb.Tid) zodb.IStorageIterator { ...@@ -1110,7 +1110,7 @@ func (fs *FileStorage) Iterate(tidMin, tidMax zodb.Tid) zodb.IStorageIterator {
// when iterating use IO optimized for sequential access // when iterating use IO optimized for sequential access
// XXX -> IterateRaw ? // XXX -> IterateRaw ?
fsSeq := xbufio.NewSeqReaderAt(fs.file) fsSeq := xbufio.NewSeqReaderAt(fs.file)
ziter.iter.fsSeq = fsSeq ziter.iter.R = fsSeq
if tidMin > tidMax { if tidMin > tidMax {
ziter.zFlags |= zIterEOF // empty ziter.zFlags |= zIterEOF // empty
......
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