From 2e8ab938c07db55e78027c1d0574f97f9926ac05 Mon Sep 17 00:00:00 2001 From: Raven Black Date: Mon, 10 Jun 2024 19:31:04 +0000 Subject: [PATCH] Fix fake_upstream tsan Signed-off-by: Raven Black --- test/integration/fake_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/fake_upstream.cc b/test/integration/fake_upstream.cc index e8ae3c677553..1f709065a59a 100644 --- a/test/integration/fake_upstream.cc +++ b/test/integration/fake_upstream.cc @@ -111,7 +111,7 @@ void FakeStream::encodeHeaders(const Http::HeaderMap& headers, bool end_stream) } } - postToConnectionThread([this, headers_copy, end_stream]() -> void { + postToConnectionThread([this, headers_copy = std::move(headers_copy), end_stream]() -> void { { absl::MutexLock lock(&lock_); if (!parent_.connected() || saw_reset_) {