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
Show 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) {
...
@@ -163,16 +163,16 @@ tuple<Conn, error> WCFS::connect(zodb::Tid at) {
// XXX what happens to file mmappings?
// XXX what happens to file mmappings?
error
_Conn
::
close
()
{
// XXX error -> void?
error
_Conn
::
close
()
{
// XXX error -> void?
_Conn
&
wconn
=
*
this
;
_Conn
&
wconn
=
*
this
;
// XXX err ctx
error
err
;
wconn
.
_wlink
->
close
();
// XXX err
err
=
wconn
.
_wlink
->
close
();
#if 0
if
(
err
!=
nil
)
wconn._pinCancel()
return
err
;
try:
wconn
.
_pinCancel
();
wconn._pinWG.wait()
err
=
wconn
.
_pinWG
->
wait
();
except Exception as e: // canceled - ok
if
(
err
!=
context
::
canceled
)
// canceled - ok
if e is not context.canceled:
return
err
;
raise
#endif
// close all files - both that have no mappings and that still have opened mappings.
// 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
// XXX after file is closed mappings continue to survive, but we can no
...
@@ -191,7 +191,7 @@ error _Conn::close() { // XXX error -> void?
...
@@ -191,7 +191,7 @@ error _Conn::close() { // XXX error -> void?
}
}
wconn
.
_filetab
.
clear
();
wconn
.
_filetab
.
clear
();
return
nil
;
// XXX -> err ?
return
nil
;
}
}
// _pinner receives pin messages from wcfs and adjusts wconn mappings.
// _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