diff options
author | monster <monster@ydb.tech> | 2023-08-28 13:43:38 +0300 |
---|---|---|
committer | monster <monster@ydb.tech> | 2023-08-28 14:38:16 +0300 |
commit | 369a4c84d9f01bc45bc857c059e1bb4194842f4d (patch) | |
tree | ae07d7fc8ab4de80aa88482747d626d8eaed2acf | |
parent | ab2b4b0becce6d749b863ef081c709c777682ce8 (diff) | |
download | ydb-369a4c84d9f01bc45bc857c059e1bb4194842f4d.tar.gz |
fix incorrect order in replies KIKIMR-18323
-rw-r--r-- | ydb/core/statistics/stat_service.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ydb/core/statistics/stat_service.cpp b/ydb/core/statistics/stat_service.cpp index 86b7d8d4096..0b8317a14c7 100644 --- a/ydb/core/statistics/stat_service.cpp +++ b/ydb/core/statistics/stat_service.cpp @@ -129,9 +129,9 @@ private: result->StatResponses.push_back(rsp); } - InFlight.erase(requestId); - Send(request.ReplyToActorId, result.Release(), 0, request.EvCookie); + + InFlight.erase(requestId); } void Handle(TEvPipeCache::TEvDeliveryProblem::TPtr& ev) { @@ -157,11 +157,11 @@ private: rsp.Req = req; } + Send(request.ReplyToActorId, std::move(result), 0, request.EvCookie); + if (removeRequest) { InFlight.erase(requestId); } - - Send(request.ReplyToActorId, std::move(result), 0, request.EvCookie); } void PassAway() override { |