diff options
author | Mathias Stearn <mathias@10gen.com> | 2010-07-16 15:27:25 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2010-07-16 15:28:10 -0400 |
commit | b43feb002f8f79e2307d2c2358b7e2e5da1bd6cb (patch) | |
tree | 4ac48f804793762f723fb8f9f56cdc8a0bc38fcd | |
parent | 788f3fe47215c423f275ec539e4eaefdb7546a92 (diff) | |
download | mongo-b43feb002f8f79e2307d2c2358b7e2e5da1bd6cb.tar.gz |
TEMPFIX: cant have // in js files except for comments
-rw-r--r-- | shell/mongo_vstudio.cpp | 4 | ||||
-rw-r--r-- | 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:/\" + \"/<host>: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://<host>:28017/_replSet for additional diagnostic info");
+ print("\tsee also http:/" + "/<host>:28017/_replSet for additional diagnostic info");
}
rs.status = function () { return db._adminCommand("replSetGetStatus"); }
rs.initiate = function (c) { return db._adminCommand({ replSetInitiate: c }); }
|