void onConnect( DBClientWithCommands &c ) { if ( _nokillop ) { return; } c.setClientRPCProtocols(shellGlobalParams.rpcProtocols); connectionRegistry.registerConnection( c ); }
void onConnect(DBClientWithCommands& c) { if (_nokillop) { return; } // Only override the default rpcProtocols if they were set on the command line. if (shellGlobalParams.rpcProtocols) { c.setClientRPCProtocols(*shellGlobalParams.rpcProtocols); } connectionRegistry.registerConnection(c); }