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
d8138920
Commit
d8138920
authored
Jul 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1d02045f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wcfs/__init__.py
wcfs/__init__.py
+4
-1
No files found.
wcfs/__init__.py
View file @
d8138920
...
@@ -168,6 +168,7 @@ def close(wconn):
...
@@ -168,6 +168,7 @@ def close(wconn):
def
_pinner
(
wconn
,
ctx
):
def
_pinner
(
wconn
,
ctx
):
# if pinner fails, wcfs will kill us.
# if pinner fails, wcfs will kill us.
# log pinner exception so the error is not hidden.
# log pinner exception so the error is not hidden.
# print to stderr as well as by default log does not print to there.
def
_
():
def
_
():
exc
=
sys
.
exc_info
()[
1
]
exc
=
sys
.
exc_info
()[
1
]
if
exc
is
None
:
if
exc
is
None
:
...
@@ -275,7 +276,9 @@ def _remmapblk(mmap, blk, at):
...
@@ -275,7 +276,9 @@ def _remmapblk(mmap, blk, at):
defer
(
fsfile
.
close
)
defer
(
fsfile
.
close
)
assert
os
.
fstat
(
fsfile
.
fileno
()).
st_blksize
==
f
.
blksize
# FIXME assert
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.
# remmap_blk remmaps file[blk] in its place again.
...
...
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