Browse Source

fix coverity issue USE_AFTER_MOVE

uzhas 1 year ago
parent
commit
c956902b9b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ydb/core/fq/libs/actors/run_actor.cpp

+ 2 - 1
ydb/core/fq/libs/actors/run_actor.cpp

@@ -2239,7 +2239,8 @@ IActor* CreateRunActor(
     const ::NYql::NCommon::TServiceCounters& serviceCounters,
     TRunActorParams&& params
 ) {
-    return new NYql::NDq::TLogWrapReceive(new TRunActor(fetcherId, serviceCounters, std::move(params)), params.QueryId);
+    auto queryId = params.QueryId;
+    return new NYql::NDq::TLogWrapReceive(new TRunActor(fetcherId, serviceCounters, std::move(params)), queryId);
 }
 
 } /* NFq */