Use one string per JS file.

mongo_vstudio.cpp in next push
This commit is contained in:
Mathias Stearn
2010-08-10 14:35:02 -04:00
parent 06cb7f821f
commit e8e772181a
5 changed files with 63 additions and 72 deletions

View File

@@ -47,8 +47,6 @@
#include "../util/text.h"
#include "../util/heapcheck.h"
extern const mongo::StringData jsconcatcode_server;
namespace mongo {
#ifdef _WIN32
inline int close(int fd) { return _close(fd); }
@@ -879,7 +877,7 @@ namespace mongo {
void initScope( Scope &scope ) {
scope.externalSetup();
mongo::shellUtils::installShellUtils( scope );
scope.execSetup( jsconcatcode_server , "setupServerCode" );
scope.execSetup(JSFiles::servers);
if ( !_dbConnect.empty() ) {
uassert( 12513, "connect failed", scope.exec( _dbConnect , "(connect)" , false , true , false ) );