Commit 712b7de9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 607545f2
...@@ -366,6 +366,9 @@ void* virt_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) { ...@@ -366,6 +366,9 @@ void* virt_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
if (err != nil) if (err != nil)
panic("TODO"); // XXX panic("TODO"); // XXX
mmap->incref(); // vma->mmap_overlay_server is keeping ref to mmap
vma->mmap_overlay_server = mmap._ptr();
panic("TODO"); panic("TODO");
} }
...@@ -382,6 +385,8 @@ void virt_munmap(VMA *vma, BigFile *file) { ...@@ -382,6 +385,8 @@ void virt_munmap(VMA *vma, BigFile *file) {
vma->mmap_overlay_server = NULL; vma->mmap_overlay_server = NULL;
mmap->unmap(); mmap->unmap();
// XXX close mmap->fileh
} }
// resync resyncs connection and its mappings onto different database view. // resync resyncs connection and its mappings onto different database view.
......
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