From a754ea45596eab7bb1193dd5ae9b9dc1d30eb4e7 Mon Sep 17 00:00:00 2001 From: Taras Pashkin <32797206+tpashkin@users.noreply.github.com> Date: Fri, 3 Jul 2026 13:54:50 +0300 Subject: Correctly fork orbits with multiple active shuttles in LWTrace lib Original fix merged to the nbs repo a while ago: https://github.com/ydb-platform/nbs/pull/4479 Can you bring to the upstream? --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1771 Co-authored-by: Alexander Smirnov commit_hash:5bf628be8a9c7b591f290ed05754e206b23efc34 --- library/cpp/lwtrace/log_shuttle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'library/cpp/lwtrace/log_shuttle.cpp') diff --git a/library/cpp/lwtrace/log_shuttle.cpp b/library/cpp/lwtrace/log_shuttle.cpp index 695aa90b316..a6563efb5b9 100644 --- a/library/cpp/lwtrace/log_shuttle.cpp +++ b/library/cpp/lwtrace/log_shuttle.cpp @@ -22,7 +22,9 @@ namespace NLWTrace { template bool TLogShuttle::DoFork(TShuttlePtr& child) { - if (child = Executor->RentShuttle()) { + if (auto shuttle = Executor->RentShuttle()) { + shuttle->SetNext(child); + child = shuttle; child->SetParentSpanId(GetSpanId()); Executor->Cast(child)->SetIgnore(true); TParams params; -- cgit v1.3