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
f60cf4b1
Commit
f60cf4b1
authored
Dec 03, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1dd22794
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+10
-10
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
f60cf4b1
...
...
@@ -163,16 +163,16 @@ tuple<Conn, error> WCFS::connect(zodb::Tid at) {
// XXX what happens to file mmappings?
error
_Conn
::
close
()
{
// XXX error -> void?
_Conn
&
wconn
=
*
this
;
// XXX err ctx
error
err
;
wconn
.
_wlink
->
close
();
// XXX err
#if 0
wconn._pinCancel()
try:
wconn._pinWG.wait()
except Exception as e: // canceled - ok
if e is not context.canceled:
raise
#endif
err
=
wconn
.
_wlink
->
close
();
if
(
err
!=
nil
)
return
err
;
wconn
.
_pinCancel
();
err
=
wconn
.
_pinWG
->
wait
();
if
(
err
!=
context
::
canceled
)
// canceled - ok
return
err
;
// 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
...
...
@@ -191,7 +191,7 @@ error _Conn::close() { // XXX error -> void?
}
wconn
.
_filetab
.
clear
();
return
nil
;
// XXX -> err ?
return
nil
;
}
// _pinner receives pin messages from wcfs and adjusts wconn mappings.
...
...
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