Commit b075ce7c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 712b7de9
......@@ -358,7 +358,7 @@ pair<Mapping, error> _FileH::mmap(int64_t blk_start, int64_t blk_len, VMA *vma)
// functions that we give to virtmem bigfile_ops .mmap*
void* virt_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
FileH fileh; // XXX = ...
FileH fileh; // XXX = ... somehow from file
Mapping mmap;
error err;
......@@ -369,7 +369,11 @@ void* virt_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
mmap->incref(); // vma->mmap_overlay_server is keeping ref to mmap
vma->mmap_overlay_server = mmap._ptr();
panic("TODO");
// XXX here? -> in fileh->mmap? don't set at all here?
vma->addr_start = mmap->mem_start;
vma->addr_stop = mmap->mem_stop;
return vma->addr_start;
}
int virt_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
......@@ -389,6 +393,7 @@ void virt_munmap(VMA *vma, BigFile *file) {
// XXX close mmap->fileh
}
// resync resyncs connection and its mappings onto different database view.
error _Conn::resync(zodb::Tid at) {
_Conn& wconn = *this;
......
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