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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
50838492
Commit
50838492
authored
Mar 02, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bf9fb0da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+6
-2
No files found.
wcfs/client/wcfs.cpp
View file @
50838492
...
...
@@ -648,8 +648,8 @@ retry:
goto
retry
;
}
// the file was opening|opened. wait for
it to be opened
and return the result.
// we can be sure there won't be last
C
lose simultaneous to us as we did ._nopen++
// the file was opening|opened. wait for
open to complete
and return the result.
// we can be sure there won't be last
c
lose simultaneous to us as we did ._nopen++
f
->
_openReady
.
recv
();
if
(
f
->
_openErr
!=
nil
)
{
// don't care about f->_nopen-- since f is not returned anywhere
...
...
@@ -687,6 +687,7 @@ retry:
wconn
.
_filehTab
.
erase
(
foid
);
wconn
.
_mu
.
Unlock
();
}
f
->
_state
=
_FileHOpened
;
f
->
_openReady
.
close
();
});
wconn
.
_mu
.
Unlock
();
...
...
@@ -803,6 +804,9 @@ error _FileH::close() {
reterr1
(
fileh
.
_headf
->
close
());
fileh
.
_state
=
_FileHClosed
;
// XXX locking
fileh
.
_closedq
.
close
();
fileh
.
_closed
=
true
;
return
E
(
eret
);
}
...
...
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