diff --git a/ydb/core/tx/columnshard/blobs_action/counters/storage.cpp b/ydb/core/tx/columnshard/blobs_action/counters/storage.cpp index e7c30dc5ee4f..8d8d9733e40f 100644 --- a/ydb/core/tx/columnshard/blobs_action/counters/storage.cpp +++ b/ydb/core/tx/columnshard/blobs_action/counters/storage.cpp @@ -9,11 +9,7 @@ TStorageCounters::TStorageCounters(const TString& storageId) } std::shared_ptr TStorageCounters::GetConsumerCounter(const TString& consumerId) { - auto it = ConsumerCounters.find(consumerId); - if (it == ConsumerCounters.end()) { - it = ConsumerCounters.emplace(consumerId, std::make_shared(consumerId, *this)).first; - } - return it->second; + return std::make_shared(consumerId, *this); } TConsumerCounters::TConsumerCounters(const TString& consumerId, const TStorageCounters& parent) diff --git a/ydb/core/tx/columnshard/blobs_action/counters/storage.h b/ydb/core/tx/columnshard/blobs_action/counters/storage.h index e92ca28bda20..902766af1545 100644 --- a/ydb/core/tx/columnshard/blobs_action/counters/storage.h +++ b/ydb/core/tx/columnshard/blobs_action/counters/storage.h @@ -25,7 +25,6 @@ class TConsumerCounters: public NColumnShard::TCommonCountersOwner { class TStorageCounters: public NColumnShard::TCommonCountersOwner { private: using TBase = NColumnShard::TCommonCountersOwner; - THashMap> ConsumerCounters; public: TStorageCounters(const TString& storageId);