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
527e4904
Commit
527e4904
authored
Oct 29, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3d12e2ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+14
-12
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
527e4904
...
...
@@ -289,17 +289,18 @@ void Conn::_pinner(IContext *ctx) {
// XXX panic/exc -> log.CRITICAL
PinReq
req
;
error
err
;
while
(
1
)
{
// XXX -> recv inplace into on-stack req ?
err
=
wconn
.
_wlink
->
recvReq
(
ctx
,
&
req
);
if
(
err
!=
nil
)
{
// XXX -> err, handle EOF, abort on *
PinReq
*
req
=
wconn
.
_wlink
->
recvReq
(
ctx
);
if
(
req
==
NULL
)
return
// XXX ok? (EOF - when wcfs closes wlink)
return
;
// XXX ok? (EOF - when wcfs closes wlink)
}
// we received request to pin/unpin file block. handle it
wconn
.
_pin1
(
req
);
// XXX free req?
wconn
.
_pin1
(
&
req
);
}
}
...
...
@@ -666,20 +667,21 @@ error WatchLink::recvReq(IContext *ctx, PinReq *rx) {
WatchLink
&
wlink
=
*
this
;
rxPkt
pkt
;
_
=
select
(
int
_
=
select
({
ctx
->
done
().
recvs
(),
// 0
wlink
.
_acceptq
.
recvs
(
&
pkt
),
// 1
)
});
if
(
_
==
0
)
return
ctx
.
err
();
return
ctx
->
err
();
rx
=
_rx
if
rx
is
None
:
// XXX recheck _serveRX vs EOF signalling
return
rx
rx
.
stream
=
pkt
.
stream
;
pkt
.
to_sting
();
pkt
.
to_st
r
ing
();
stream
,
msg
=
rx
// XXX -> _parsePinReq
return
PinReq
(
wlink
,
stream
,
msg
)
}
...
...
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