Skip to content

Commit e78a2d3

Browse files
committed
test -05
1 parent 30465e8 commit e78a2d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/cloud/storage/internal/async/writer_connection_resumed.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ class AsyncWriterConnectionResumedState
257257
auto impl = Impl(lk);
258258
lk.unlock();
259259
impl->Query().then([this, result, w = WeakFromThis()](auto f) {
260-
SetFlushed(std::unique_lock<std::mutex>(mu_), std::move(result));
261260
if (auto self = w.lock()) return self->OnQuery(f.get());
261+
SetFlushed(std::unique_lock<std::mutex>(mu_), std::move(result));
262262
});
263263
}
264264

@@ -458,8 +458,8 @@ class AsyncWriterConnectionResumedState
458458
flushed.set_value(result);
459459
// Restart the write loop ONLY if we are not already finalizing.
460460
// If finalizing_ is true, the completion will be handled by OnFinalize.
461-
std::unique_lock<std::mutex> loop_lk(mu_);
462-
if (!finalizing_) WriteLoop(std::move(loop_lk));
461+
// std::unique_lock<std::mutex> loop_lk(mu_);
462+
// if (!finalizing_) WriteLoop(std::move(loop_lk));
463463
}
464464

465465
void SetError(std::unique_lock<std::mutex> lk, Status const& status) {

0 commit comments

Comments
 (0)