Commit 58e5bc78 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9ad0fcb5
......@@ -183,7 +183,7 @@ using std::max;
using std::vector;
#define TRACE 1
#define TRACE 0
#if TRACE
# define trace(format, ...) log::Debugf(format, ##__VA_ARGS__)
#else
......@@ -792,7 +792,17 @@ retry:
if (f->_openErr != nil)
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;
return make_pair(f, nil);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment