Commit a81a235b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c1554f40
......@@ -34,6 +34,9 @@ static void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t bl
wcfs::Mapping mmap;
error err;
if (fileh == nil)
panic("BUG: zfile_mmap_setup_read: ZBigFile.fileh_open did not set .wfileh");
tie(mmap, err) = fileh->mmap(blk, blklen, vma);
if (err != nil)
panic("TODO"); // XXX
......
......@@ -259,7 +259,7 @@ pair<FileH, error> _Conn::open(zodb::Oid foid) {
FileH f; bool ok;
tie(f, ok) = wconn._filehtab.get(foid);
if (f == nil) {
if (f != nil) {
// XXX incref open count?
return make_pair(f, nil);
}
......
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