/////////////////////////////////////////////////////////////////////
| 79 | |
| 80 | ////////////////////////////////////////////////////////////////////////// |
| 81 | void RunSlave(int workerThreadCount, int port) { |
| 82 | InitNetworkSubSystem(); |
| 83 | LocalExecutor().RunAdditionalThreads(workerThreadCount); |
| 84 | |
| 85 | TIntrusivePtr<TRemoteQueryProcessor> qp(new TRemoteQueryProcessor); |
| 86 | TIntrusivePtr<TWriteBufferHandler> wb(new TWriteBufferHandler(qp.Get())); |
| 87 | TIntrusivePtr<TContextReplica> context(new TContextReplica(qp.Get(), wb->GetWriteBuffer())); |
| 88 | TIntrusivePtr<TMRCmdsProcessor> mr(new TMRCmdsProcessor(qp.Get(), context.Get())); |
| 89 | qp->RunSlave(port); |
| 90 | Y_ASSERT(LocalExecutor().GetQueueSize() == 0); |
| 91 | LocalExecutor().ClearLPQueue(); |
| 92 | qp->Stop(); |
| 93 | } |
| 94 | |
| 95 | IRootEnvironment* RunLocalMaster(int workerThreadCount) { |
| 96 | LocalExecutor().RunAdditionalThreads(workerThreadCount); |
nothing calls this directly
no test coverage detected