Skip to content

Commit 8cd7f96

Browse files
committed
test -05
1 parent 6e365c9 commit 8cd7f96

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

@@ -464,8 +464,8 @@ class AsyncWriterConnectionResumedState
464464
flushed.set_value(result);
465465
// Restart the write loop ONLY if we are not already finalizing.
466466
// If finalizing_ is true, the completion will be handled by OnFinalize.
467-
std::unique_lock<std::mutex> loop_lk(mu_);
468-
if (!finalizing_) WriteLoop(std::move(loop_lk));
467+
// std::unique_lock<std::mutex> loop_lk(mu_);
468+
// if (!finalizing_) WriteLoop(std::move(loop_lk));
469469
}
470470

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

0 commit comments

Comments
 (0)