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
58e5bc78
Commit
58e5bc78
authored
Mar 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9ad0fcb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+12
-2
No files found.
wcfs/client/wcfs.cpp
View file @
58e5bc78
...
@@ -183,7 +183,7 @@ using std::max;
...
@@ -183,7 +183,7 @@ using std::max;
using
std
::
vector
;
using
std
::
vector
;
#define TRACE
1
#define TRACE
0
#if TRACE
#if TRACE
# define trace(format, ...) log::Debugf(format, ##__VA_ARGS__)
# define trace(format, ...) log::Debugf(format, ##__VA_ARGS__)
#else
#else
...
@@ -792,7 +792,17 @@ retry:
...
@@ -792,7 +792,17 @@ retry:
if
(
f
->
_openErr
!=
nil
)
if
(
f
->
_openErr
!=
nil
)
return
make_pair
(
nil
,
E
(
f
->
_openErr
));
return
make_pair
(
nil
,
E
(
f
->
_openErr
));
// XXX recheck the wconn was not closed while the open was in progress
// NOTE no need to recheck that wconn was not closed while the open was in
// progress: we'll return "success" but Conn.close will close the fileh.
// However it is indistinguishable from the following scenario:
//
// T1 T2
//
// f = wconn.open()
// # completes ok
// wconn.close()
//
// # use f -> error
retok
=
true
;
retok
=
true
;
return
make_pair
(
f
,
nil
);
return
make_pair
(
f
,
nil
);
...
...
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