Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
4bfc6d73
Commit
4bfc6d73
authored
Jan 08, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5c3038eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+4
-4
No files found.
wcfs/wcfs_test.py
View file @
4bfc6d73
...
@@ -1715,11 +1715,11 @@ class tMapping(object):
...
@@ -1715,11 +1715,11 @@ class tMapping(object):
if
not
isinstance
(
dataok
,
bytes
):
if
not
isinstance
(
dataok
,
bytes
):
dataok
=
dataok
.
encode
(
'utf-8'
)
dataok
=
dataok
.
encode
(
'utf-8'
)
f
=
t
.
mmap
.
file
f
h
=
t
.
mmap
.
fileh
assert
len
(
dataok
)
<=
f
.
blksize
assert
len
(
dataok
)
<=
f
h
.
blksize
dataok
+=
b'
\
0
'
*
(
f
.
blksize
-
len
(
dataok
))
# trailing zeros
dataok
+=
b'
\
0
'
*
(
f
h
.
blksize
-
len
(
dataok
))
# trailing zeros
blkview
=
t
.
mmap
.
mem
[
blk_inmmap
*
f
.
blksize
:][:
f
.
blksize
]
blkview
=
t
.
mmap
.
mem
[
blk_inmmap
*
f
h
.
blksize
:][:
fh
.
blksize
]
# XXX first access without GIL, so that e.g. if there is timeout on
# XXX first access without GIL, so that e.g. if there is timeout on
# wcfs.py side, _abort_ontimeout could run and kill WCFS.
# wcfs.py side, _abort_ontimeout could run and kill WCFS.
# FIXME also test with GIL locked, since wcfs.py pinner must be itself
# FIXME also test with GIL locked, since wcfs.py pinner must be itself
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment