Skip to content

Commit

Permalink
fix request shard count sensor (#11962)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny authored Nov 25, 2024
1 parent 2bc34d4 commit a925034
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ydb/core/tx/tx_proxy/rpc_long_tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ class TLongTxWriteBase: public TActorBootstrapped<TLongTxWriteImpl>,
accessor.reset();

const auto& splittedData = shardsSplitter->GetSplitData();
const auto& shardsInRequest = splittedData.GetShardRequestsCount();
InternalController =
std::make_shared<NEvWrite::TWritersController>(splittedData.GetShardRequestsCount(), this->SelfId(), LongTxId, NoTxWrite);
std::make_shared<NEvWrite::TWritersController>(shardsInRequest, this->SelfId(), LongTxId, NoTxWrite);

InternalController->GetCounters()->OnSplitByShards(splittedData.GetShardsCount());
InternalController->GetCounters()->OnSplitByShards(shardsInRequest);
ui32 sumBytes = 0;
ui32 rowsCount = 0;
ui32 writeIdx = 0;
Expand Down

0 comments on commit a925034

Please sign in to comment.