Commit f60cf4b1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1dd22794
...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment