| 63 | } |
| 64 | |
| 65 | void TRootEnvironment::Stop() { |
| 66 | ContextMaster->WaitAllDistributionActivity(); |
| 67 | if (QueryProc.Get()) { |
| 68 | QueryProc->StopSlaves(); |
| 69 | } |
| 70 | Y_ASSERT(LocalExecutor().GetQueueSize() == 0); |
| 71 | LocalExecutor().ClearLPQueue(); |
| 72 | ContextMaster = nullptr; |
| 73 | Master = nullptr; |
| 74 | if (QueryProc.Get()) { |
| 75 | QueryProc->Stop(); |
| 76 | QueryProc = nullptr; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | ////////////////////////////////////////////////////////////////////////// |
| 81 | void RunSlave(int workerThreadCount, int port) { |
no test coverage detected