Commit d8138920 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1d02045f
......@@ -168,6 +168,7 @@ def close(wconn):
def _pinner(wconn, ctx):
# if pinner fails, wcfs will kill us.
# log pinner exception so the error is not hidden.
# print to stderr as well as by default log does not print to there.
def _():
exc = sys.exc_info()[1]
if exc is None:
......@@ -275,7 +276,9 @@ def _remmapblk(mmap, blk, at):
defer(fsfile.close)
assert os.fstat(fsfile.fileno()).st_blksize == f.blksize # FIXME assert
mm.map_into_ro(mmap.mem[(blk-mmap.blk_start)*blksize:][:blksize], fsfile.fileno(), blk*blksize)
mm.map_into_ro(
mmap.mem[(blk-mmap.blk_start)*f.blksize:][:f.blksize],
fsfile.fileno(), blk*f.blksize)
# remmap_blk remmaps file[blk] in its place again.
......
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