diff options
| -rw-r--r-- | yt/yt/core/ytree/ypath_client.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt/yt/core/ytree/ypath_client.cpp b/yt/yt/core/ytree/ypath_client.cpp index 7a4cd258bdb..a07176978be 100644 --- a/yt/yt/core/ytree/ypath_client.cpp +++ b/yt/yt/core/ytree/ypath_client.cpp @@ -285,7 +285,10 @@ void ResolveYPath( auto currentService = rootService; - const auto& originalPath = GetOriginalRequestTargetYPath(context->RequestHeader()); + // NB: of course, we could use reference here. But Resolve() can change + // request header due to master compat. + // COMPAT(kvk1920): use const reference. + auto originalPath = GetOriginalRequestTargetYPath(context->RequestHeader()); auto currentPath = GetRequestTargetYPath(context->RequestHeader()); int iteration = 0; |
