ClientInfo * ClientInfo::get(AbstractMessagingPort* messagingPort) { ClientInfo * info = _tlInfo.get(); if (!info) { info = create(messagingPort); } massert(16483, mongoutils::str::stream() << "AbstractMessagingPort was provided to ClientInfo::get" << " but differs from the one stored in the current ClientInfo object. " << "Current ClientInfo messaging port " << (info->port() ? "is not" : "is") << " NULL", messagingPort == NULL || messagingPort == info->port()); return info; }