File tree 2 files changed +1
-6
lines changed
ydb/core/tx/columnshard/blobs_action/counters
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)
9
9
}
10
10
11
11
std::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
+ return std::make_shared<TConsumerCounters>(consumerId, *this );
17
13
}
18
14
19
15
TConsumerCounters::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 {
25
25
class TStorageCounters : public NColumnShard ::TCommonCountersOwner {
26
26
private:
27
27
using TBase = NColumnShard::TCommonCountersOwner;
28
- THashMap<TString, std::shared_ptr<TConsumerCounters>> ConsumerCounters;
29
28
public:
30
29
TStorageCounters (const TString& storageId);
31
30
You can’t perform that action at this time.
0 commit comments