Example #1
0
 ClientInfo* ClientInfo::create(AbstractMessagingPort* messagingPort) {
     ClientInfo * info = _tlInfo.get();
     massert(16472, "A ClientInfo already exists for this thread", !info);
     info = new ClientInfo(messagingPort);
     info->setAuthorizationSession(new AuthorizationSession(
             new AuthzSessionExternalStateMongos(getGlobalAuthorizationManager())));
     _tlInfo.reset( info );
     info->newRequest();
     return info;
 }