Skip to content

Commit 02176a8

Browse files
Bugfix for alter consumers in pqrb (ydb-platform#12613)
1 parent b48f081 commit 02176a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/core/persqueue/read_balancer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ void TPersQueueReadBalancer::Handle(TEvPersQueue::TEvUpdateBalancerConfig::TPtr
372372
auto it = oldConsumers.find(consumer.GetName());
373373
if (it != oldConsumers.end()) {
374374
Consumers[consumer.GetName()] = std::move(it->second);
375+
} else {
376+
Consumers.insert(std::make_pair(consumer.GetName(), TConsumerInfo{}));
375377
}
376378
}
377379

0 commit comments

Comments
 (0)