| 28 | return AllJobs->EnvId2Version; |
| 29 | } |
| 30 | const IObjectBase* GetContextData(int envId, int hostId) override { |
| 31 | TContextHash::const_iterator z = ContextData.find(envId); |
| 32 | if (z == ContextData.end()) { |
| 33 | Y_ASSERT(0 && "not available envId"); |
| 34 | return nullptr; |
| 35 | } |
| 36 | TContextDataHolder* ctx = z->second.Get(); |
| 37 | int thisCompId = QueryProc->GetCompId(); |
| 38 | int thisHostId = ctx->Computer2HostId[thisCompId]; |
| 39 | if (thisHostId != hostId) { |
| 40 | Y_ASSERT(0 && "data with this hostId is not available on this computer"); |
| 41 | return nullptr; |
| 42 | } |
| 43 | return ctx->Data; |
| 44 | } |
| 45 | bool HasHostIds(const THashMap<int, bool>& hostIdSet) override { |
| 46 | if (ContextData.empty() || hostIdSet.empty()) |
| 47 | return true; |