Skip to content

Commit 893823d

Browse files
Merge b1e3013 into a950903
2 parents a950903 + b1e3013 commit 893823d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

ydb/core/tx/columnshard/blobs_action/counters/storage.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ TStorageCounters::TStorageCounters(const TString& storageId)
99
}
1010

1111
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);
1713
}
1814

1915
TConsumerCounters::TConsumerCounters(const TString& consumerId, const TStorageCounters& parent)

ydb/core/tx/columnshard/blobs_action/counters/storage.h

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class TConsumerCounters: public NColumnShard::TCommonCountersOwner {
2525
class TStorageCounters: public NColumnShard::TCommonCountersOwner {
2626
private:
2727
using TBase = NColumnShard::TCommonCountersOwner;
28-
THashMap<TString, std::shared_ptr<TConsumerCounters>> ConsumerCounters;
2928
public:
3029
TStorageCounters(const TString& storageId);
3130

0 commit comments

Comments
 (0)