File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
ydb/core/tx/columnshard/blobs_action/counters Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ TStorageCounters::TStorageCounters(const TString& storageId)
99}
1010
1111std::shared_ptr<NKikimr::NOlap::NBlobOperations::TConsumerCounters> TStorageCounters::GetConsumerCounter (const TString& consumerId) {
12- auto it = ConsumerCounters.find (consumerId);
13- if (it == ConsumerCounters.end ()) {
14- it = ConsumerCounters.emplace (consumerId, std::make_shared<TConsumerCounters>(consumerId, *this )).first ;
15- }
16- return it->second ;
12+ std::make_shared<TConsumerCounters>(consumerId, *this );
1713}
1814
1915TConsumerCounters::TConsumerCounters (const TString& consumerId, const TStorageCounters& parent)
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class TConsumerCounters: public NColumnShard::TCommonCountersOwner {
2525class TStorageCounters : public NColumnShard ::TCommonCountersOwner {
2626private:
2727 using TBase = NColumnShard::TCommonCountersOwner;
28- THashMap<TString, std::shared_ptr<TConsumerCounters>> ConsumerCounters;
2928public:
3029 TStorageCounters (const TString& storageId);
3130
You can’t perform that action at this time.
0 commit comments