void AuthzSessionExternalStateMongod::startRequest(OperationContext* txn) {
     if (!Lock::isLocked()) {
         _checkShouldAllowLocalhost(txn);
     }
 }
 void AuthzSessionExternalStateMongos::startRequest() {
     _checkShouldAllowLocalhost();
 }
    void AuthzSessionExternalStateMongod::startRequest(OperationContext* txn) {
        // No locks should be held as this happens before any database accesses occur
        fassert(17506, txn->lockState()->threadState() == 0);

        _checkShouldAllowLocalhost(txn);
    }
 void AuthzSessionExternalStateMongod::startRequest() {
     if (!Lock::isLocked()) {
         _checkShouldAllowLocalhost();
     }
 }
void AuthzSessionExternalStateMongos::startRequest(OperationContext* opCtx) {
    _checkShouldAllowLocalhost(opCtx);
}
void AuthzSessionExternalStateMongod::startRequest(OperationContext* opCtx) {
    // No locks should be held as this happens before any database accesses occur
    dassert(!opCtx->lockState()->isLocked());

    _checkShouldAllowLocalhost(opCtx);
}