Example #1
0
 void onConnect( DBClientWithCommands &c ) {
     if ( _nokillop ) {
         return;
     }
     c.setClientRPCProtocols(shellGlobalParams.rpcProtocols);
     connectionRegistry.registerConnection( c );
 }
Example #2
0
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);
}