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
b5211351
Commit
b5211351
authored
Jul 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f99178af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
wcfs/__init__.py
wcfs/__init__.py
+13
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-0
No files found.
wcfs/__init__.py
View file @
b5211351
...
...
@@ -136,6 +136,16 @@ def close(wconn):
# XXX stop/join pinner
wconn
.
_wlink
.
close
()
# close all files - both that have no mappings and that still have opened mappings.
# XXX after file is closed mappings continue to survive, but we can no
# longer maintin consisten view.
with
wconn
.
_filemu
:
for
f
in
wconn
.
_filetab
.
values
():
f
.
headf
.
close
()
f
.
headf
=
None
wconn
.
_filetab
=
None
# _pinner receives pin messages from wcfs and adjusts wconn mappings.
@
func
(
Conn
)
...
...
@@ -240,7 +250,9 @@ def unmap(mmap):
mm
.
unmap
(
mmap
.
mem
)
mmap
.
mem
=
None
mmap
.
file
.
mmaps
.
remove
(
mmap
)
f
=
mmap
.
file
f
.
mmaps
.
remove
(
mmap
)
# WatchLink represents /head/watch link opened on wcfs.
...
...
wcfs/wcfs_test.py
View file @
b5211351
...
...
@@ -1705,6 +1705,7 @@ def test_wcfspy_virtmem():
defer
(
wconn
.
close
)
m1
=
wconn
.
mmap
(
zf
.
_p_oid
,
2
,
2
)
defer
(
m1
.
unmap
)
# ---- misc ---
...
...
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