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
79113e49
Commit
79113e49
authored
Oct 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f1dd4cbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+6
-7
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
79113e49
...
...
@@ -200,7 +200,7 @@ void Conn::_pin1(SrvReq *req) {
wconn
->
_filemu
.
lock
();
auto
_
=
wconn
->
_filetab
.
find
(
req
->
foid
);
if
(
_
==
wconn
->
_filetab
.
end
())
{
// XXX unlock
wconn
->
_filemu
.
unlock
();
// XXX err = we are not watching the file - why wcfs sent us this update?
}
...
...
@@ -226,13 +226,12 @@ void Conn::_pin1(SrvReq *req) {
// update f.pinned
// XXX do it before ^^^ remmapblk (so that e.g. concurrent
// discard/writeout see correct f.pinned) ?
#if 0
if req.at is None:
f.pinned.pop(req.blk, None) # = delete(f.pinned, req.blk) -- unpin to @head
else
:
f
.pinned[req.blk] = req.at
if
(
req
->
at
==
TidHead
)
{
f
->
pinned
.
erase
(
req
->
blk
);
// unpin to @head
}
else
{
f
->
pinned
[
req
->
blk
]
=
req
->
at
;
}
#endif
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