fix -u -p on shell startup

This commit is contained in:
Eliot Horowitz
2010-02-08 20:43:08 -05:00
parent 04ef27cb4f
commit a2a95072bd

View File

@@ -588,6 +588,7 @@ namespace mongo {
if ( !_dbConnect.empty() ) {
uassert( 12513, "connect failed", scope.exec( _dbConnect , "(connect)" , false , true , false ) );
if ( !_dbAuth.empty() ) {
installGlobalUtils( scope );
uassert( 12514, "login failed", scope.exec( _dbAuth , "(auth)" , true , true , false ) );
}
}