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
8f62953d
Commit
8f62953d
authored
Feb 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a54b4f4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+3
-5
wcfs/client/wcfs_misc.h
wcfs/client/wcfs_misc.h
+1
-1
No files found.
wcfs/client/wcfs.cpp
View file @
8f62953d
...
...
@@ -161,10 +161,7 @@ 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
);
err
=
E
(
err
);
// if pinner fails, wcfs will kill us.
// log pinner error so the error is not hidden.
...
...
@@ -190,6 +187,7 @@ error _Conn::_pinner(context::Context ctx) {
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
PinReq
req
;
error
err
;
...
...
@@ -203,13 +201,13 @@ error _Conn::__pinner(context::Context ctx) {
err
=
(
wconn
.
_downErr
==
errConnClosed
)
?
nil
:
io
::
ErrUnexpectedEOF
;
wconn
.
_downMu
.
unlock
();
}
return
err
;
return
E
(
err
)
;
}
// we received request to pin/unpin file block. handle it
err
=
wconn
.
_pin1
(
&
req
);
if
(
err
!=
nil
)
{
return
err
;
return
E
(
err
)
;
}
}
}
...
...
wcfs/client/wcfs_misc.h
View file @
8f62953d
...
...
@@ -168,7 +168,7 @@ public:
}
// xerr::
// golang::log::
TODO -> pygolang
// golang::log::
XXX -> pygolang ?
namespace
golang
{
namespace
log
{
...
...
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