Skip to content

Commit 5d0492c

Browse files
committed
Fix bug with incorrect cpu only when shared threads turned on
1 parent b378a82 commit 5d0492c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ydb/library/actors/core/cpu_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ namespace NActors {
9595
Executors[excIdx].Reset(CreateExecutorPool(excIdx));
9696
bool ignoreThreads = dynamic_cast<TIOExecutorPool*>(Executors[excIdx].Get());
9797
TSelfPingInfo *pingInfo = (excIdx < Config.PingInfoByPool.size()) ? &Config.PingInfoByPool[excIdx] : nullptr;
98+
ignoreThreads &= (Shared != nullptr);
9899
Harmonizer->AddPool(Executors[excIdx].Get(), pingInfo, ignoreThreads);
99100
}
100101
ACTORLIB_DEBUG(EDebugLevel::ActorSystem, "TCpuManager::Setup: created");

0 commit comments

Comments
 (0)