From b43feb002f8f79e2307d2c2358b7e2e5da1bd6cb Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Fri, 16 Jul 2010 15:27:25 -0400 Subject: [PATCH] TEMPFIX: cant have // in js files except for comments --- shell/mongo_vstudio.cpp | 4 +++- shell/utils.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/mongo_vstudio.cpp b/shell/mongo_vstudio.cpp index 3d5b17e23b7..7cf31c6e236 100644 --- a/shell/mongo_vstudio.cpp +++ b/shell/mongo_vstudio.cpp @@ -653,7 +653,9 @@ const char * jsconcatcode = "print(\"\\trs.add(hostportstr) add a new member to the set with default attributes\");\n" "print(\"\\trs.conf() return configuration from local.system.replset\");\n" "print();\n" - "print(\"\\tdb.isMaster() check who is primary\");}\n" + "print(\"\\tdb.isMaster() check who is primary\");\n" + "print();\n" + "print(\"\\tsee also http:/\" + \"/:28017/_replSet for additional diagnostic info\");}\n" "rs.status = function () { return db._adminCommand(\"replSetGetStatus\"); }\n" "rs.initiate = function (c) { return db._adminCommand({ replSetInitiate: c }); }\n" "rs.add = function (hostport) {\n" diff --git a/shell/utils.js b/shell/utils.js index 67a023236d9..c66c5aca65c 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -1055,7 +1055,7 @@ rs.help = function () { print(); print("\tdb.isMaster() check who is primary"); print(); - print("\tsee also http://:28017/_replSet for additional diagnostic info"); + print("\tsee also http:/" + "/:28017/_replSet for additional diagnostic info"); } rs.status = function () { return db._adminCommand("replSetGetStatus"); } rs.initiate = function (c) { return db._adminCommand({ replSetInitiate: c }); }