Commit 0a387dfc authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a1e3ec4c
...@@ -315,7 +315,7 @@ pair<FileH, error> _Conn::open(zodb::Oid foid) { ...@@ -315,7 +315,7 @@ pair<FileH, error> _Conn::open(zodb::Oid foid) {
// TODO perform open with filehmu released // TODO perform open with filehmu released
f = adoptref(new _FileH()); f = adoptref(new _FileH());
f->wconn = newref(&wconn); // XXX newref -> simpler? f->wconn = newref(&wconn);
f->foid = foid; f->foid = foid;
tie(f->_headf, err) tie(f->_headf, err)
= wconn._wc->_open(fmt::sprintf("head/bigfile/%s", v(foid))); = wconn._wc->_open(fmt::sprintf("head/bigfile/%s", v(foid)));
...@@ -414,7 +414,7 @@ pair<Mapping, error> _FileH::mmap(int64_t blk_start, int64_t blk_len, VMA *vma) ...@@ -414,7 +414,7 @@ pair<Mapping, error> _FileH::mmap(int64_t blk_start, int64_t blk_len, VMA *vma)
} }
Mapping mmap = adoptref(new _Mapping()); Mapping mmap = adoptref(new _Mapping());
mmap->fileh = newref(&f); // XXX newref - simpler? mmap->fileh = newref(&f);
mmap->blk_start = blk_start; mmap->blk_start = blk_start;
mmap->mem_start = mem_start; mmap->mem_start = mem_start;
mmap->mem_stop = mem_stop; mmap->mem_stop = mem_stop;
......
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