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
3347d835
Commit
3347d835
authored
Jan 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eac823f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
wcfs/internal/wcfs.cpp
wcfs/internal/wcfs.cpp
+5
-5
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+1
-1
No files found.
wcfs/internal/wcfs.cpp
View file @
3347d835
...
...
@@ -242,7 +242,7 @@ error _Conn::__pin1(PinReq *req) {
FileH
f
;
bool
ok
;
wconn
.
_filehmu
.
lock
();
tie
(
f
,
ok
)
=
wconn
.
_filehtab
.
get
(
req
->
foid
);
tie
(
f
,
ok
)
=
wconn
.
_filehtab
.
get
_
(
req
->
foid
);
if
(
!
ok
)
{
wconn
.
_filehmu
.
unlock
();
// XXX err = we are not watching the file - why wcfs sent us this update?
...
...
@@ -306,8 +306,8 @@ pair<FileH, error> _Conn::open(zodb::Oid foid) {
return
make_pair
(
nil
,
E
(
wconn
.
_downErr
));
FileH
f
;
bool
ok
;
tie
(
f
,
ok
)
=
wconn
.
_filehtab
.
get
(
foid
);
if
(
f
!=
nil
)
{
tie
(
f
,
ok
)
=
wconn
.
_filehtab
.
get
_
(
foid
);
if
(
ok
)
{
// XXX incref open count
return
make_pair
(
f
,
nil
);
}
...
...
@@ -360,7 +360,7 @@ error _FileH::close() {
// fileh could be opened for the same foid. Be careful not to erase it.
wconn
->
_filehmu
.
lock
();
// XXX decref open count
if
(
wconn
->
_filehtab
.
get
(
fileh
.
foid
)
==
fileh
)
if
(
wconn
->
_filehtab
.
get
(
fileh
.
foid
)
==
&
fileh
)
wconn
->
_filehtab
.
erase
(
fileh
.
foid
);
wconn
->
_filehmu
.
unlock
();
...
...
@@ -562,7 +562,7 @@ void _Mapping::remmap_blk(int64_t blk) {
// blkrev = rev | @head
zodb
::
Tid
blkrev
;
bool
ok
;
tie
(
blkrev
,
ok
)
=
mmap
.
fileh
->
_pinned
.
get
(
blk
);
tie
(
blkrev
,
ok
)
=
mmap
.
fileh
->
_pinned
.
get
_
(
blk
);
if
(
!
ok
)
blkrev
=
TidHead
;
...
...
wcfs/internal/wcfs_watchlink.cpp
View file @
3347d835
...
...
@@ -173,7 +173,7 @@ error _WatchLink::_serveRX(context::Context ctx) { // XXX error -> where ?
bool
ok
;
wlink
.
_rxmu
.
lock
();
tie
(
rxq
,
ok
)
=
wlink
.
_rxtab
.
pop
(
pkt
.
stream
);
tie
(
rxq
,
ok
)
=
wlink
.
_rxtab
.
pop
_
(
pkt
.
stream
);
wlink
.
_rxmu
.
unlock
();
if
(
!
ok
)
{
// wcfs sent reply on unexpected stream
...
...
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