| 153 | } |
| 154 | |
| 155 | void TGlobalUserContext::RunLocalOnly(TJobDescription* descr, IMRCommandCompleteNotify* completeNotify) { |
| 156 | // copy is needed to handle UpdateDistrState() correctly |
| 157 | // UpdateDistrState() is not thread safe and different contexts can have different HostId2Computer |
| 158 | TGlobalUserContext* ctx = new TGlobalUserContext(*this); |
| 159 | TIntrusivePtr<TRestrictedGlobalUserContext> userContext = new TRestrictedGlobalUserContext(ctx); |
| 160 | |
| 161 | AsyncStartGroupRequest(descr, QueryProc.Get(), userContext.Get(), completeNotify); |
| 162 | } |
| 163 | |
| 164 | ////////////////////////////////////////////////////////////////////////// |
| 165 | class TEnvironment: public IEnvironment { |
no test coverage detected