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
f0f4fcde
Commit
f0f4fcde
authored
Oct 21, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f8526f45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+13
-1
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
f0f4fcde
...
...
@@ -88,6 +88,7 @@ struct WatchLink {
// SrvReq represents 1 server-initiated wcfs request received over /head/watch link.
struct
SrvReq
{
// XXX
Oid
foid
;
// request is about this file
};
...
...
@@ -135,5 +136,16 @@ void Conn::_pinner(IContext *ctx) {
void
Conn
::
_pin1
(
SrvReq
*
req
)
{
Conn
*
wconn
=
this
;
// XXX
// XXX defer: reply either ack or nak on error
wconn
->
_filemu
.
lock
();
auto
_
=
wconn
->
_filetab
.
find
(
req
->
foid
);
if
(
_
==
wconn
->
_filetab
.
end
())
{
// XXX unlock
// XXX err = we are not watching the file - why wcfs sent us this update?
}
_File
*
f
=
_
->
second
;
wconn
->
_filemu
.
unlock
();
}
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