Commit 4bfc6d73 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5c3038eb
......@@ -1715,11 +1715,11 @@ class tMapping(object):
if not isinstance(dataok, bytes):
dataok = dataok.encode('utf-8')
f = t.mmap.file
assert len(dataok) <= f.blksize
dataok += b'\0'*(f.blksize - len(dataok)) # trailing zeros
fh = t.mmap.fileh
assert len(dataok) <= fh.blksize
dataok += b'\0'*(fh.blksize - len(dataok)) # trailing zeros
blkview = t.mmap.mem[blk_inmmap*f.blksize:][:f.blksize]
blkview = t.mmap.mem[blk_inmmap*fh.blksize:][:fh.blksize]
# XXX first access without GIL, so that e.g. if there is timeout on
# wcfs.py side, _abort_ontimeout could run and kill WCFS.
# FIXME also test with GIL locked, since wcfs.py pinner must be itself
......
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