We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3649964 + 629ad45 commit c3eda27Copy full SHA for c3eda27
src/rgw/driver/rados/rgw_pubsub_push.cc
@@ -154,10 +154,10 @@ class Waiter {
154
auto yield = y.get_yield_context();
155
auto&& token = yield[ec];
156
boost::asio::async_initiate<boost::asio::yield_context, Signature>(
157
- [this] (auto handler, auto ex) {
+ [this, &l] (auto handler, auto ex) {
158
completion = Completion::create(ex, std::move(handler));
159
+ l.unlock(); // unlock before suspend
160
}, token, yield.get_executor());
- l.unlock();
161
return -ec.value();
162
}
163
cond.wait(l, [this]{return (done==true);});
0 commit comments