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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
81049e5d
Commit
81049e5d
authored
Feb 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6b6f096d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+6
-6
No files found.
wcfs/client/wcfs.cpp
View file @
81049e5d
...
...
@@ -109,7 +109,7 @@ static global<error> errConnClosed = errors::New("connection closed");
// close releases resources associated with wconn.
//
// opened fileh and mappings become
s
invalid to use except close and unmap.
// opened fileh and mappings become invalid to use except close and unmap.
error
_Conn
::
close
()
{
_Conn
&
wconn
=
*
this
;
xerr
::
Contextf
E
(
"wcfs %s: close conn @%s"
,
v
(
wconn
.
_wc
->
mountpoint
),
v
(
wconn
.
at
));
...
...
@@ -161,6 +161,8 @@ error _Conn::close() {
// _pinner receives pin messages from wcfs and adjusts wconn mappings.
error
_Conn
::
_pinner
(
context
::
Context
ctx
)
{
_Conn
&
wconn
=
*
this
;
xerr
::
Contextf
E
(
"pinner"
);
// NOTE pinner error goes to Conn::close who has its own context
error
err
=
wconn
.
__pinner
(
ctx
);
// mark the connection non-operational if the pinner fails
...
...
@@ -171,13 +173,11 @@ error _Conn::_pinner(context::Context ctx) {
}
wconn
.
_downMu
.
unlock
();
return
err
;
return
E
(
err
);
}
error
_Conn
::
__pinner
(
context
::
Context
ctx
)
{
_Conn
&
wconn
=
*
this
;
xerr
::
Contextf
E
(
"pinner"
);
// NOTE pinner error goes to Conn::close who has its own context
// XXX panic/exc -> log.CRITICAL
#if 0
...
...
@@ -207,13 +207,13 @@ error _Conn::__pinner(context::Context ctx) {
err
=
(
wconn
.
_downErr
==
errConnClosed
)
?
nil
:
io
::
ErrUnexpectedEOF
;
wconn
.
_downMu
.
unlock
();
}
return
E
(
err
)
;
return
err
;
}
// we received request to pin/unpin file block. handle it
err
=
wconn
.
_pin1
(
&
req
);
if
(
err
!=
nil
)
{
return
E
(
err
)
;
return
err
;
}
}
}
...
...
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